Skip to content

Drop typing.Dict/List/Tuple in favor of builtin generics - #183

Merged
benpruitt merged 2 commits into
masterfrom
chore/drop-typing-dict
Oct 21, 2026
Merged

benpruitt merged 2 commits into
masterfrom
chore/drop-typing-dict

Conversation

@benpruitt

Copy link
Copy Markdown
Contributor

Summary

  • Replace typing.Dict, typing.List, and typing.Tuple with the builtin dict/list/tuple generic aliases (PEP 585), now that Python 3.8 support has been retired and the project requires Python 3.9+.
  • Drop the now-unused typing imports accordingly.
  • Union/Optional are left as-is since converting those to X | Y syntax needs Python 3.10+, not just the 3.9 floor.

Test plan

  • python -m py_compile on all touched files
  • pre-commit hooks (isort, flake8, autopep8, mypy) pass

benpruitt and others added 2 commits October 21, 2026 19:38
Python 3.8 support has been retired and the project now requires
Python 3.9+, which supports PEP 585 generic aliases on builtin
collection types.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Same PEP 585 rationale as the typing.Dict cleanup: the project now
requires Python 3.9+, so these can be builtin generics instead.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@benpruitt
benpruitt merged commit 7264eec into master Oct 21, 2026
22 checks passed
@benpruitt
benpruitt deleted the chore/drop-typing-dict branch October 21, 2026 23:48
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.

1 participant