- Notifications
You must be signed in to change notification settings - Fork281
Closed
Milestone
Description
The following program prints__main__.A[int] even thoughA is not generic. I'd expect it to print something like<class '__main__.A'>.
from typing import Iteratorclass A(Iterator[int]): def __next__(self): passprint(A().__class__)Also, this does not generate an exception, even thoughA is not generic:
def f(x: A[int]) -> None: passMetadata
Metadata
Assignees
Labels
No labels