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

Ensure non-blocking mypy compatibility #130

Merged
merged 3 commits into from
Feb 19, 2024

Conversation

jamescw19
Copy link
Contributor

@jamescw19 jamescw19 commented Feb 19, 2024

mypy follows imports to third-party dependency packages by default. If the package has any blocking errors, mypy cannot perform any type checking.
This PR ensures that referencing is compatible with the latest version of mypy and will not produce any fatal blocking errors.
These checks are added to CI through nox. Type checks within referencing are still done with pyright.

This also fixes an invalid type: ignore syntax issue (#128), where non-PEP484 syntax caused a blocking error in mypy<0.990.

@Julian
Copy link
Member

Julian commented Feb 19, 2024

Looks reasonable, thanks!

@Julian Julian merged commit 2e89e8d into python-jsonschema:main Feb 19, 2024
22 checks passed
@jamescw19 jamescw19 deleted the misc/mypy-compatibility branch February 21, 2024 15:30
@Julian
Copy link
Member

Julian commented Feb 21, 2024 via email

@paulrutter
Copy link

@Julian when is this going to be released?

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