-
-
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: Var is lacking info - access to class variable imported in context class #11641
Labels
Comments
For anyone inconvenienced with this issue, this is how to work around it: # user.py
from typing import TYPE_CHECKING
if TYPE_CHECKING:
class name:
pass
else:
name = 'Bob' |
Thanks, similar to #7806 Reproes on master, full traceback:
|
This might be fixed by: #11344 |
hauntsaninja
pushed a commit
to hauntsaninja/mypy
that referenced
this issue
Jan 20, 2022
Fixes python#11045, fixes huggingface/transformers#13390 Fixes python#10488 Fixes python#7045 Fixes python#7806 Fixes python#11641 Fixes python#11351 Fixes python#10488 Co-authored-by: @A5rocks
JelleZijlstra
pushed a commit
that referenced
this issue
Feb 17, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Crash Report
Traceback
To Reproduce
Your Environment
mypy.ini
(and other config files): noThanks for looking into this,
The text was updated successfully, but these errors were encountered: