Skip to content

Provide types in a mypy compatible format #503

Open
@rgbkrk

Description

@rgbkrk

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions