Skip to content

To mypy or not to mypy #3

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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