Skip to content

Fixed a circular import between win32comext.axscript.client.framework and win32comext.axscript.client.error#2381

Merged
Avasam merged 2 commits intomhammond:mainfrom
Avasam:Circular-imports-in-win32comext.axscript.client
Oct 6, 2024
Merged

Fixed a circular import between win32comext.axscript.client.framework and win32comext.axscript.client.error#2381
Avasam merged 2 commits intomhammond:mainfrom
Avasam:Circular-imports-in-win32comext.axscript.client

Conversation

@Avasam
Copy link
Copy Markdown
Collaborator

@Avasam Avasam commented Oct 5, 2024

Fixes a regression in 307 found whilst updating typeshed's pywin32 stubs

Whilst this area of code isn't automatically tested, there are ways we can automatically safeguard against this kind of issue by detecting imports that are only used for annotations: https://docs.astral.sh/ruff/rules/#flake8-type-checking-tch

@mhammond
Copy link
Copy Markdown
Owner

mhammond commented Oct 6, 2024

there are ways we can automatically safeguard against this kind of issue by detecting imports that are only used for annotations

Might as well enable whatever rules make sense for annotations 👍

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