Skip to content

Create an @assert_types Decorator for Pysertive #4

Open
@abeltavares

Description

@abeltavares

Description

Extend Pysertive to work seamlessly with MyPy, ensuring that contract checks also consider type hints. This will enhance type safety and static analysis.

Suggested Implementation

Create a new decorator @assert_types that validates type hints for function arguments and return values.

Acceptance Criteria

  • @assert_types decorator is created to enforce type hints.
  • @assert_types works alongside existing decorators.
  • Unit tests are written to ensure type hinting works as expected.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions