Skip to content

[typing] Validate all calls using pydantic.validate_call() decorator #1314

@ns-rse

Description

@ns-rse

Further to #1299 / #516 and related Pull Requests (#1311) we can improve type-checking and usage by using the Pydantic Validation Decorator (@validate_call() which checks the arguments data types are valid (i.e. the correct type) before the function is executed.

May wish to consider using Field() (see bottom of documentation page) to validate ranges of values in some instances.

Metadata

Metadata

Assignees

No one assigned

    Labels

    typingIssues pertaining to type-hints across the code base.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions