NoReturn and object #2920
JelleZijlstra
started this conversation in
General
Replies: 1 comment 3 replies
-
No, that's a bug. Thanks for pointing it out. I'll fix it. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was exploring pyright's treatment of NoReturn (in preparation for adding and documenting typing.Never) and noticed that pyright allows passing NoReturn to parameters of type
object
. For example, this typechecks:Is this an intentional behavior? It's not what I expected on first principles but it seems useful in practice.
Beta Was this translation helpful? Give feedback.
All reactions