Skip to content

TicketWatcher.list() shadows Python builtin list #4

Description

@danchild

Problem

TicketWatcher.list() in src/poller/watcher.py shadows Python's builtin list. The method itself uses list[dict] as a type annotation in its return type and local variables, which can lead to subtle type resolution issues or confusing behavior when the builtin is unexpectedly shadowed.

Affected files

  • src/poller/watcher.py — method definition
  • src/poller/main.py — three call sites (/watch, /watch/{ticket_key}, /watch GET)
  • tests/test_epic_sync.py — four call sites in TestWatchListShowsChildren

Fix

Rename list()list_tickets() and update all call sites.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions