-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
AssertionError
with nested TypeVar
#14137
Labels
Comments
cdce8p
changed the title
Nov 19, 2022
AssertionError
with TypeVarAssertionError
with TypeVar and attrs
It looks like
|
cdce8p
changed the title
Nov 19, 2022
AssertionError
with TypeVar and attrs
AssertionError
with nested TypeVar
Can confirm #14148 does resolve the issue. Thanks @ilevkivskyi for the quick fix! |
ilevkivskyi
pushed a commit
that referenced
this issue
Dec 19, 2022
Currently, `mypy_primer` sets `--cache-dir=/dev/null` which disables cache generation. This can result in errors being missed which would normally come up during `tree.serialize()`. Removing `--cache-dir=/dev/null` isn't practical. This PR adds a new debug / test option `--debug-serialize` which runs `tree.serialize()` even if cache generation is disabled to help detect serialize errors earlier. **Refs** * #14137 * hauntsaninja/mypy_primer#54 (review) cc: @hauntsaninja
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Crash Report
Encountered this issue while testing the current master branch with Home Assistant (with all requirements installed).
Bisected it to #14095.
/CC: @ilevkivskyi
Traceback
Full traceback
I did add some debugging calls before the
AssertionError
. The serialization for this object failedTo Reproduce
Unfortunately I wasn't yet able to narrow it further to a short code sample.
However, it is easily reproducible with Home Assistant
attrs==21.2.0
ortypes-attrs==19.1.0
(only dependency required to reproduce the error itmypy homeassistant/components/zha/core
Your Environment
mypy 1.0.0+dev.a2477ff0d0cb751f27a2b38d27ce6572ead03451
mypy.ini
(and other config files): see Home Assistant repo3.9
Github actions -> Ubuntu-20.04
The text was updated successfully, but these errors were encountered: