Skip to content

Update type checkers and reduce exclusions#2697

Open
Avasam wants to merge 6 commits intomhammond:mainfrom
Avasam:Update-type-checkers
Open

Update type checkers and reduce exclusions#2697
Avasam wants to merge 6 commits intomhammond:mainfrom
Avasam:Update-type-checkers

Conversation

@Avasam
Copy link
Collaborator

@Avasam Avasam commented Dec 20, 2025

  • Bumped pyright and mypy
  • Set pyright's typeCheckingMode to "standard"
  • Enable allow_redefinition and allow_redefinition_new in mypy for more flexible redefinitions and less idiosynchrasies
    • but requires also enabling local_partial_types which means more assignements needed to be explicitly typed
  • Fix one-offs mypy errors that would appear if enabling check_untyped_defs
    • and typed those functions so mypy now checks them
  • Add new error codes to temporarily ignore from mypy and pyright
  • Cleanups in affected areas
    • Especially usages of RunScript

@Avasam Avasam force-pushed the Update-type-checkers branch from 3c24f45 to 5571495 Compare December 20, 2025 06:22
@Avasam Avasam force-pushed the Update-type-checkers branch from e7ee37d to fb86df0 Compare December 29, 2025 03:42
@Avasam Avasam changed the title Update type checkers Update type checkers and reduce exclusions Feb 11, 2026
for key, mod in sys.modules.items():
if getattr(mod, "__file__", None):
fname = mod.__file__
for key, mod in list(sys.modules.items()):
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Potential bugfix as mentioned by the comment

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