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

give an option to skip imports for type checking? #6

Open
likewei92 opened this issue May 27, 2023 · 0 comments
Open

give an option to skip imports for type checking? #6

likewei92 opened this issue May 27, 2023 · 0 comments

Comments

@likewei92
Copy link

Sometimes imports are used only for type checking. Python recommends placing these imports under a if TYPE_CHECKING condition: https://docs.python.org/3/library/typing.html#typing.TYPE_CHECKING, which can be used to reduce the cost of imports during runtime or to break circular dependencies. Is it possible to have an option to exclude these imports?

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

No branches or pull requests

1 participant