You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.
You should get an error reported for the word Foo in bar.py.
Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
Microsoft Python Language Server version 0.1.78.0
Initializing for [redacted]
Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)
N/A
The text was updated successfully, but these errors were encountered:
I believe this is a deficiency in the old analyzer, which I don't believe supports indirect imports of things from typing. The new analyzer should handle this better.
@patrys commented on Fri Jan 25 2019
Environment data
Expected behaviour
Importing a complex type like
MyType = Callable[Foo, Bar]
works.Actual behaviour
Language server reports an error when the type is used:
'Foo' used before definition
.Steps to reproduce:
You should get an error reported for the word
Foo
inbar.py
.Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging
)The text was updated successfully, but these errors were encountered: