Skip to content

Conversation

@evalstate
Copy link
Owner

  • Replace List[] -> list[], Dict[] -> dict[], Tuple[] -> tuple[], Set[] -> set[]
  • Replace Optional[X] -> X | None
  • Replace Union[X, Y] -> X | Y where possible
  • Keep Union for forward reference cases (Union["Type", None])
  • Move type-only imports to TYPE_CHECKING blocks where needed
  • Add from future import annotations to key files

@evalstate evalstate force-pushed the claude/modernize-type-hints-0123PUcHrEFujpE6xmzMbFnJ branch from 96d6ce9 to 81f06aa Compare November 23, 2025 12:26
- Replace List[] -> list[], Dict[] -> dict[], Tuple[] -> tuple[], Set[] -> set[]
- Replace Optional[X] -> X | None
- Use Union["Type", None] for forward reference cases to satisfy TC010 rule
- Clean up unused typing imports (List, Dict, Tuple, Set, Optional)
@evalstate evalstate force-pushed the claude/modernize-type-hints-0123PUcHrEFujpE6xmzMbFnJ branch from 81f06aa to 3f78ce4 Compare November 23, 2025 12:30
@evalstate evalstate merged commit 86038f9 into main Nov 23, 2025
6 checks passed
@evalstate evalstate deleted the claude/modernize-type-hints-0123PUcHrEFujpE6xmzMbFnJ branch November 27, 2025 21:52
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.

3 participants