Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve _CArrayType alias import. #596

Merged
merged 2 commits into from
Aug 7, 2024
Merged

Conversation

junkmd
Copy link
Collaborator

@junkmd junkmd commented Aug 7, 2024

By making the linter settings stricter, a warning was issued because _CArrayType was imported in the middle of the module.

To resolve this, I moved the import line to the top of the module.

Additionally, for static typing, it is better to use explicitly defined symbols rather than those imported with a wildcard.
Therefore, I changed the parts that were previously typed with Array to be typed with _CArrayType.

@junkmd junkmd added the typing related to Python static typing system label Aug 7, 2024
@junkmd junkmd added this to the 1.4.7 milestone Aug 7, 2024
junkmd added a commit to junkmd/pywinauto that referenced this pull request Aug 7, 2024
@junkmd junkmd merged commit 82e4a2d into enthought:main Aug 7, 2024
49 checks passed
@junkmd junkmd deleted the improve_CArrayType branch August 7, 2024 23:12
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typing related to Python static typing system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant