Skip to content

To mypy or not to mypy #3

@ross-spencer

Description

@ross-spencer

Mypy can perform static analysis on Python code that includes typing, e.g. https://mitelman.engineering/blog/python-best-practice/automating-python-best-practices-for-a-new-project/

But also, pydantic has built in context managers that can validate input into functions and that combined with type hints might be enough.

For this repo, it depends whether it is a sensible default, so perhaps mypy can be included for hints/linting only and shouldn't cause any failures.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions