The type information displayed wrong for sys.exc_info with the latest typeshed
Open
@heejaechang is already working on this.
Since Jun 30, 2026.
needs repro
- Dominant language
- C#
- Stars
- 2.6k
- Forks
- 680
- Avg merge
- 39m
- Merged PRs (30d)
- 1
Description
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. And add "from typing import Optional, Tuple, Type" to sys.pyi
d. Close and reopen the project
Expected behavior
It should now report e3 as being a version info instance


Actual result
The type information with no change.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.