Skip to content

collections.abc.Iterable[int] does not fail #3003

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
ilevkivskyi opened this issue Mar 14, 2017 · 1 comment
Closed

collections.abc.Iterable[int] does not fail #3003

ilevkivskyi opened this issue Mar 14, 2017 · 1 comment
Labels
bug mypy got something wrong priority-2-low

Comments

@ilevkivskyi
Copy link
Member

This code:

from collections.abc import Iterable

it: Iterable[int]

passes mypy silently, although obviously fails at runtime. This is similar to #2428 but the reason is a bit different: it is related to how typeshed stubs are organized. This is also a bit more difficult to fix than #2428.

@ilevkivskyi ilevkivskyi added bug mypy got something wrong priority-2-low labels Mar 31, 2017
@hauntsaninja
Copy link
Collaborator

Duplicate of #948

@hauntsaninja hauntsaninja marked this as a duplicate of #948 May 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong priority-2-low
Projects
None yet
Development

No branches or pull requests

2 participants