Skip to content

fix: rename TicketWatcher.list() to list_tickets()#5

Open
danchild wants to merge 1 commit into
forge-sdlc:mainfrom
danchild:fix/rename-list-to-list-tickets
Open

fix: rename TicketWatcher.list() to list_tickets()#5
danchild wants to merge 1 commit into
forge-sdlc:mainfrom
danchild:fix/rename-list-to-list-tickets

Conversation

@danchild

Copy link
Copy Markdown

Summary

  • Renames TicketWatcher.list() to list_tickets() to avoid shadowing Python's builtin list
  • Updates all call sites in main.py and test files

Fixes #4

Test plan

  • Existing tests updated and passing
  • Manual verification: GET /watch returns expected response

🤖 Generated with Claude Code

… builtin

The method name `list` shadows Python's builtin, which is also used as a
type annotation (`list[dict]`) inside the method body. Rename to
`list_tickets()` and update all call sites.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TicketWatcher.list() shadows Python builtin list

1 participant