Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create an @assert_types Decorator for Pysertive #4

Open
abeltavares opened this issue May 21, 2024 · 0 comments
Open

Create an @assert_types Decorator for Pysertive #4

abeltavares opened this issue May 21, 2024 · 0 comments
Labels

Comments

@abeltavares
Copy link
Owner

abeltavares commented May 21, 2024

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.
@abeltavares abeltavares changed the title Create a @type_hint Decorator for Pysertive Create a @assert_types Decorator for Pysertive May 22, 2024
@abeltavares abeltavares changed the title Create a @assert_types Decorator for Pysertive Create an @assert_types Decorator for Pysertive May 22, 2024
@abeltavares abeltavares added the enhancement New feature or request label May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant