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 error subcodes to differentiate import errors #14740

Merged
merged 3 commits into from
Aug 10, 2023

Commits on Feb 20, 2023

  1. Use error subcodes to differentiate import errors

    Resolves python#9789
    
    Users could use `--disable-error-code=import-untyped` to only ignore
    errors about libraries not having stubs, but continue to get errors
    about e.g. typos in an import name.
    
    The sub error code mechanism is new. Note that users will now get a
    different error code depending on whether or not a package is installed,
    and may not know that they can use the parent error code to ignore the
    issue regardless. I think this is okay, in general type checking results
    can change if you run them in two different environments.
    hauntsaninja committed Feb 20, 2023
    Configuration menu
    Copy the full SHA
    ad94eee View commit details
    Browse the repository at this point in the history
  2. fix tests

    hauntsaninja committed Feb 20, 2023
    Configuration menu
    Copy the full SHA
    26a8fcf View commit details
    Browse the repository at this point in the history
  3. sort

    hauntsaninja committed Feb 20, 2023
    Configuration menu
    Copy the full SHA
    46738b4 View commit details
    Browse the repository at this point in the history