Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

[Task]: Use a static type checker e.g. mypy, in our CI #1184

@aponcedeleonch

Description

@aponcedeleonch

Description

Currently, we are using type annotations in most, if not all, of our functions, classes, and variables. However, due to Python’s dynamic nature, these types act more like hints or documentation rather than something that is strictly enforced. By integrating a static type checker into our CI pipeline, we can proactively catch potential type-related bugs, such as accidentally changing the type of a variable when passing it between functions, without realizing it.

mypy is a popular static type checker for Python. It analyzes your code and alerts you when types are used incorrectly — for example, if a function expects a string but receives an integer. Adding mypy to our CI pipeline would help us ensure better type safety across the codebase, improve code clarity, and reduce the likelihood of subtle bugs making their way into production.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions