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

Add Type Hints to Core Decorator Functions #7

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

Add Type Hints to Core Decorator Functions #7

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

Comments

@abeltavares
Copy link
Owner

Description

Enhance the existing core decorator functions (pre_condition, post_condition, and invariant) by adding type hints to their parameters and return types. This will improve code clarity and facilitate static type checking with tools like MyPy.

Suggested Implementation

Add type hints to the parameters and return types of the core decorator functions. Ensure that type hints cover all parameters, including check, exception_type, and message.

Acceptance Criteria

  • Type hints are added to all core decorator functions.
  • Type hints cover all parameters and return types.
  • Unit tests are written to ensure the type hints are correct.
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