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

Use sys.version_info to guard imports #1177

Merged
merged 2 commits into from
Aug 28, 2024

Commits on Aug 27, 2024

  1. Use sys.version_info to guard imports

    Use `if sys.version_info >= (3, minor):` for Python-version-dependent imports. Unlike `try/except ImportError`, this is natively supported by typecheckers, allowing removal of typechecker error suppression and consequently better typechecking validation.
    
    Signed-off-by: Alice Purcell <[email protected]>
    alicederyn committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    91294df View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2024

  1. Configuration menu
    Copy the full SHA
    90a7a2e View commit details
    Browse the repository at this point in the history