Skip to content

The type information displayed wrong for sys.exc_info with the latest typeshed #8564

Description

@linette-zyy

Environment
Image

Steps to Reproduce

  1. Ensure the option is unchecked by default
    a. Check there is type information in below example
Image Image Image
  1. Custom Typeshed path
    a. git clone https://github.com/python/typeshed, enter the local path on disk where you cloned the repository
    image
    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
Image
d. Close and reopen the project

Expected behavior
It should now report e3 as being a version info instance
image
image

Actual result
The type information with no change.
Image

Image

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions