-
Notifications
You must be signed in to change notification settings - Fork 768
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
Dict[k, v]
vs dict[k, v]
(!)
#521
Comments
I'm tracking the same bug here: microsoft/pyright#1120. The problem is that I'm not able to repro the problem, and it appears to be sporadic. I assume it has to do with some aspect of the type analyzers internal caching mechanism. |
I found and fixed the root cause of this problem. The fix will be in the next release. |
@ElijahSink I believe that'll also be fixed. |
This issue has been fixed in version 2020.11.0, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/master/CHANGELOG.md#2020110-4-november-2020 |
Environment data
Expected behaviour
Either:
dict[k, v]
is meant to be supported.x: dict[k, v]
for being invalid.dict[k, v]
as a type.Actual behaviour
Where:
x
has typeDict[]
dict(x)
has typedict[]
y
Logs
Logic bug.
Code Snippet / Additional information
This template feels sort of inverted. Maybe merge "Code" and "Actual Behavior" and place them before "Expected Behavior"?
The text was updated successfully, but these errors were encountered: