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

Treat imports under "if TYPE_CHECKING" as weak. #15384

Closed
wants to merge 1 commit into from

Commits on May 10, 2022

  1. Treat imports under "if TYPE_CHECKING" as weak.

    It's not an error if they're not available at runtime (hence the
    TYPE_CHECKING test), and at typecheck time they can be provided by
    [mypy].extra_type_stubs.
    
    [ci skip-rust]
    
    [ci skip-build-wheels]
    benjyw committed May 10, 2022
    Configuration menu
    Copy the full SHA
    8bb73b1 View commit details
    Browse the repository at this point in the history