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 Support for Async Functions in Decorators #2

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

Add Support for Async Functions in Decorators #2

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

Comments

@abeltavares
Copy link
Owner

Description

Extend pre_condition, post_condition, and invariant decorators to support asynchronous functions. This will make Pysertive suitable for modern Python applications using async/await.

Suggested Implementation

Update the decorators to handle async def functions. Ensure that the conditions are checked correctly in an asynchronous context.

Acceptance Criteria

  • pre_condition, post_condition, and invariant decorators support asynchronous functions.
  • Conditions are checked correctly for async functions.
  • Unit tests are written to ensure the async support works as expected.
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