Skip to content

Ensure consistent type definitions in python functions #3660

@ninsbl

Description

@ninsbl

In order to be able to use type checking in IDEs, pre-commit, or CI, it would be good if input variables to python functions could be consistently annotated with variable types. That would also be a general improvement of the developer documentation.

This would be a longer, gradual effort. To start off, it could be clarified in the python committer guidelines, how annotation should be done...

see also post by @echoix in #3374 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    PythonRelated code is in PythondocsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions