Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No change with the type information when change the sys.exc_info with the latest typeshed. #7974

Open
linette-zyy opened this issue Aug 7, 2024 · 3 comments
Assignees
Labels

Comments

@linette-zyy
Copy link

Environment
image

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

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

Additional context and screenshots
The type information has not changed with latest typeshed.
image

@StellaHuang95
Copy link
Contributor

I can repro this one, this is a regression.

@StellaHuang95
Copy link
Contributor

@linette-zyy can you check if it still repros? Thanks!

@linette-zyy
Copy link
Author

I can repro in today's build. Python installed from VS.
image
The type information has not changed with latest typeshed.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants