This repository was archived by the owner on Apr 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 133
Tuple[int, int] not unpacked correctly into lvar tuple #1457
Comments
It actually displays type of the tuple correctly: |
You're right, I should have been more specific. |
MikhailArkhipov
pushed a commit
that referenced
this issue
Sep 16, 2019
0.4.18+ |
jakebailey
pushed a commit
to jakebailey/python-language-server
that referenced
this issue
Nov 1, 2019
Fixes microsoft#1457 Fixes microsoft#1494 Fixes microsoft#411 Fixes microsoft#1382 Fixes microsoft#1293
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
In the following piece of code, the Microsoft Python Analysis Engine incorrectly infers the types of
a
andb
when hovering over them.Minimal reproducible example
Expected behavior
When hovering over
a
orb
, I expect to seea: int
andb: int
.Actual behavior
When hovering over
a
orb
, it showsa: Tuple[int, int]
andb: Tuple[int, int]
. I also tested this using PyCharm CE and it correctly inferred the types (i.e.a: int
andb: int
).System information
OS: macOS "Mojave" 10.14.6 (18G87)
Visual Studio Code
Python extension version: 2019.8.30787
Version: 1.37.1
Commit: f06011ac164ae4dc8e753a3fe7f9549844d15e35
Date: 2019-08-15T16:16:34.800Z
Electron: 4.2.7
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Darwin x64 18.7.0
The text was updated successfully, but these errors were encountered: