Skip to content

Comments

Remaining typing tidyup#916

Open
Dreamsorcerer wants to merge 6 commits intopyinvoke:mainfrom
Dreamsorcerer:typing
Open

Remaining typing tidyup#916
Dreamsorcerer wants to merge 6 commits intopyinvoke:mainfrom
Dreamsorcerer:typing

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