-
Notifications
You must be signed in to change notification settings - Fork 114
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
@typeguard on a test breaks pytest assertion rewriting #477
Comments
I don't think there's much I can do about this, apart from returning |
Thank you @agronholm . I am not familiar with In case it is useful, I'll point you to https://docs.pytest.org/en/stable/how-to/writing_plugins.html#assertion-rewriting and |
|
It's not useful, sorry. This API is for enabling assertion rewrite outside of the collected pytest modules. |
Thank you again for the quick and thoughtful responses. What do you think of making those trade-offs, but potentially only when |
Things to check first
I have searched the existing issues and didn't find my bug already reported there
I have checked that my bug is still present in the latest release
Typeguard version
4.3.0
Python version
3.12
What happened?
Install pytest and typeguard.
Run the following script:
See output including:
Now run:
See:
How can we reproduce the bug?
Run the code examples from the previous section.
The text was updated successfully, but these errors were encountered: