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

Remaining typing tidyup #916

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

Dreamsorcerer
Copy link
Contributor

No description provided.

@Dreamsorcerer Dreamsorcerer marked this pull request as ready for review February 12, 2023 16:53
@Dreamsorcerer
Copy link
Contributor Author

Dreamsorcerer commented Feb 12, 2023

Think there's still some good changes here worth including, so just creating a PR with the remaining changes I had.

Will also push my partial typing of tests up later as a separate PR, if it looks like we can work around the awkward nested classes.

@kuwv
Copy link
Contributor

kuwv commented Feb 12, 2023

I recommend keeping 'if TYPE_CHECKING' as it reduces chances for circular imports and does not import unneeded modules at runtime.

@Dreamsorcerer
Copy link
Contributor Author

Yeah, I don't mind too much. I usually find it preferable to have real imports where possible.

@Dreamsorcerer
Copy link
Contributor Author

Kept one where the module was already imported for another object, have reverted the rest.

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.

3 participants