-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
bugmypy got something wrongmypy got something wrong
Description
this worked in 0.921
from typing import NoReturn
Never = NoReturn
a: Never # error: Variable "__main__.Never" is not valid as a type [valid-type]
b: NoReturn # no errorinb4 "that's not what NoReturn is for". mypy treats NoReturn more like a Never type, meaning it's valid as a type annotation. see #11508 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrong