Skip to content

Enable flake8-type-checking (TCH) to prevent regressions due to extra imports for type-checking purposes#2388

Merged
Avasam merged 3 commits intomhammond:mainfrom
Avasam:flake8-type-checking
Oct 13, 2024
Merged

Enable flake8-type-checking (TCH) to prevent regressions due to extra imports for type-checking purposes#2388
Avasam merged 3 commits intomhammond:mainfrom
Avasam:flake8-type-checking

Conversation

@Avasam
Copy link
Copy Markdown
Collaborator

@Avasam Avasam commented Oct 7, 2024

Helps prevent regressions such as #2381 and #2387 . This rule contains autofixable suggestions too.

All 3 imports in com/win32comext/axscript/client/error.py are flagged by this if I remove if TYPE_CHECKING:.

@Avasam Avasam force-pushed the flake8-type-checking branch from 07120cd to 79f4742 Compare October 7, 2024 23:19
@Avasam Avasam merged commit cba799b into mhammond:main Oct 13, 2024
@Avasam Avasam deleted the flake8-type-checking branch October 13, 2024 16:44
@Avasam Avasam added the ActiveX label Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants