open typeshed/stdlib/sys/init.pyi, add from typing import Optional, Tuple, Type to typeshed/stdlib/sys/init.pyi
open typeshed/stdlib/sys/init.pyi, change
With this instead:
def exc_info() -> Tuple[Optional[Type[BaseException]],
Optional[BaseException],
Optional[_version_info]]: …
2.create a PythonApplication1.py, enter the local path on disk where you cloned the repository
Options
3.Restart VS and enter the following code
import sys
e1,e2,e3=sys.exc_info()
Expected behavior
It should now report e3 as being a version info instance
Additional context and screenshots
The type information has not changed with latest typeshed.
Environment![image](https://github.com/user-attachments/assets/4dabf4bb-da5e-4a39-bc62-77021f7ce44d)
Steps to Reproduce 1.git clone https://github.com/python/typeshed
open typeshed/stdlib/sys/init.pyi, add from typing import Optional, Tuple, Type to typeshed/stdlib/sys/init.pyi open typeshed/stdlib/sys/init.pyi, change
With this instead: def exc_info() -> Tuple[Optional[Type[BaseException]], Optional[BaseException], Optional[_version_info]]: …
2.create a PythonApplication1.py, enter the local path on disk where you cloned the repository Options![image](https://github.com/user-attachments/assets/63625e96-f16f-4a99-82ed-444b326b6476)
3.Restart VS and enter the following code import sys e1,e2,e3=sys.exc_info()
Expected behavior It should now report e3 as being a version info instance![image](https://github.com/user-attachments/assets/0e3c2b66-3777-44b6-a7cd-6d323a0f44db)
Additional context and screenshots The type information has not changed with latest typeshed.![image](https://github.com/user-attachments/assets/90686049-b873-4258-a640-fc34f0e73cdb)