PTVS
PTVS copied to clipboard
The type information displayed wrong for sys.exc_info with the latest typeshed
Environment
Steps to Reproduce
- Ensure the option is unchecked by default
a. Check there is type information in below example
- Custom Typeshed path
a. git clone https://github.com/python/typeshed, enter the local path on disk where you cloned the repository
b. open typeshed/stdlib/sys.pyi
def exc_info() -> Tuple[Optional[Type[BaseException]],
Optional[BaseException],
Optional[TracebackType]]: ...
With this instead:
def exc_info() -> Tuple[Optional[Type[BaseException]],
Optional[BaseException],
Optional[_version_info]]: ...
c. Close and reopen the project
Expected behavior
It should now report e3 as being a version info instance
Actual result
All type information displayed "Any"
@bschnurr I don't know enough about this to comment. Should we reach out to Eric?
most likely a ptvs issue. could be we aren't passing/setting the typeshed path correctly. I can take a look
maybe we expect relative path
hmm.. couldn't repo Version 17.1.0 Preview 3.0 [32105.426.main]
I verify this issue on the latest build. It still reproduced.
@linette-zyy I'm closing this out since it's old. Does this still repro on the latest build? If it does, please reopen this so we can investigate.