-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 fails on command object looking for __code__
#1927
Comments
The command class doesn't have a code attribute though. |
I have a similar issue on https://github.com/hacf-fr/renault-api (see https://github.com/hacf-fr/renault-api/runs/2664117342), trying to update from 7.1.2 to 8.0.1
|
Seems to be a bug in typeguard, they're expecting something to have a If you want to use |
__code__
@davidism maybe you could keep this open a little longer - until the root cause or a workaround is found.
Specifically, reverting the changes on lines 1629 and 1641 makes the problem go away:
Before the commit: |
I think the issue is that the |
|
After updating from click 8.0.0 to 8.0.1 problems with mypy related to #1879 vanished. But still when I run dynamic type-checking with typeguard it is failing. I works perfectly on 7.1.2.
Steps to reproduce:
I run typeguard as a pytest plugin.
If you run this code with:
You will get the errors on here:
Expected behavior: it runs all tests detecting correct types.
Environment:
The text was updated successfully, but these errors were encountered: