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

Provide types in a mypy compatible format #503

Open
rgbkrk opened this issue Apr 25, 2023 · 0 comments
Open

Provide types in a mypy compatible format #503

rgbkrk opened this issue Apr 25, 2023 · 0 comments

Comments

@rgbkrk
Copy link

rgbkrk commented Apr 25, 2023

When this package is used from a workspace that uses mypy it will show up with the error:

Skipping analyzing "redis_om": module is installed, but missing library stubs or py.typed marker 

More on this from mypy in Missing library stubs or py typed marker

We would love to benefit from type-checking since HashModel is already based on pydantic! Any of the options mypy recommends is great:

I have to put this in my pyproject.toml for the moment:

[[tool.mypy.overrides]]
module = "redis_om"
ignore_missing_imports = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants