Skip to content

Missing definitions for typing_extensions #12438

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

Closed
taasan opened this issue Mar 24, 2022 · 1 comment
Closed

Missing definitions for typing_extensions #12438

taasan opened this issue Mar 24, 2022 · 1 comment
Labels
bug mypy got something wrong

Comments

@taasan
Copy link

taasan commented Mar 24, 2022

Bug Report

Missing definitions in typeshed. They have been added to upstream typeshed.

To Reproduce

mypy -c 'from typing_extensions import assert_never, Never'

Expected Behavior

Type checking should succeed

Actual Behavior

<string>:1: error: Module "typing_extensions" has no attribute "assert_never"
<string>:1: error: Module "typing_extensions" has no attribute "Never"
Found 2 errors in 1 file (checked 1 source file)

Your Environment

  • Mypy version used: Tried both 0.921 (from fedora) and 0.941
  • Mypy command-line flags:
  • Mypy configuration options from mypy.ini (and other config files):
  • Python version used: 3.10
  • Operating system and version: Fedora 35
@taasan taasan added the bug mypy got something wrong label Mar 24, 2022
@hauntsaninja
Copy link
Collaborator

Will be included in the next release, presumably from #12321

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

No branches or pull requests

2 participants