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

Unable to use recent versions of jsonschema from typed code (mypy) #963

Closed
ssbarnea opened this issue Jun 7, 2022 · 1 comment
Closed

Comments

@ssbarnea
Copy link
Contributor

ssbarnea commented Jun 7, 2022

As the wrapper types-jsonschema went out of sync, is no longer possible to use it with mypy. Attempts to use the library directly gives errors because py.typed marker was removed.

src/ansible_compat/schema.py:6: error: Skipping analyzing "jsonschema": module is installed, but missing library stubs or py.typed marker
src/ansible_compat/schema.py:6: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
src/ansible_compat/schema.py:7: error: Skipping analyzing "jsonschema.validators": module is installed, but missing library stubs or py.typed marker

Looking at https://pypi.org/project/types-jsonschema/#history I see that these releases are 2 versions behind as the current version is 4.6.0

Can we please start publishing types with the library?

Related:

@Julian
Copy link
Member

Julian commented Jun 7, 2022

#954 (comment) was fairly clear about what the next steps are here. Again, help is welcome.

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 a pull request may close this issue.

2 participants