Skip to content

Update pyupgrade pre commit hook#843

Merged
VaghinakDev merged 1 commit intodevelopfrom
pre_commit_hooks
Apr 8, 2026
Merged

Update pyupgrade pre commit hook#843
VaghinakDev merged 1 commit intodevelopfrom
pre_commit_hooks

Conversation

@VaghinakDev
Copy link
Copy Markdown
Contributor

Add PEP 563 future annotations import to 42 files that use PEP 585 style type hints (list[...], dict[...], tuple[...], set[...]).

This resolves the "TypeError: 'function' object is not subscriptable" error when running pre-commit pyupgrade hook, which occurs because these type hints are evaluated at class definition time without the future import.

Add PEP 563 future annotations import to 42 files that use PEP 585
style type hints (list[...], dict[...], tuple[...], set[...]).

This resolves the "TypeError: 'function' object is not subscriptable"
error when running pre-commit pyupgrade hook, which occurs because
these type hints are evaluated at class definition time without the
future import.
@VaghinakDev VaghinakDev merged commit 5310c65 into develop Apr 8, 2026
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.

2 participants