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 was archived by the owner on Apr 14, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
No completions for sys.exc_info with latest typeshed #434
With the bundled typeshed on Python 3, you get completions/info tips on these variables:
import sys
e1, e2, e3 = sys.exc_info()
But if you clone latest typeshed and make vscode use that (I overwrote the languageSever.x.y.z/Typeshed folder) then you no longer get completions/info tips.
Activity
jakebailey commentedon Nov 27, 2018
I'm willing to bet it's because of this: python/typeshed@25ac4d6
exc_info()'s return value was changed from a plain tuple into_OptExcInfo, which is:Whether or not it's due to the
Optionalor due to the fact that it changed from an inline type to one that's assigned, I don't know offhand.jakebailey commentedon Feb 8, 2019
This was almost fixed as of #546 (e1 and e2 have types), but
TracebackTypedoesn't seem to get resolved even though it's been imported in the stub.jakebailey commentedon Feb 8, 2019
Looked at this more closely;
sys.pyiimportstypes(which would betypes.pyi) andtypes.pyiimportssys(to do those simple if statements).jakebailey commentedon Mar 7, 2019
This looks to be fixed, though the tooltips could use some work.