[issue46475] typing.Never and typing.assert_never

Jelle Zijlstra report at bugs.python.org
Sun Jan 23 00:22:07 EST 2022


Jelle Zijlstra <jelle.zijlstra at gmail.com> added the comment:

Based on feedback here and on typing-sig I'm now leaning towards adding typing.Never along with typing.assert_never. I'll submit a single patch for these as the documentation will be closely linked.

----------
title: Document use of NoReturn as a bottom type -> typing.Never and typing.assert_never
type:  -> enhancement
versions:  -Python 3.10, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46475>
_______________________________________


More information about the Python-bugs-list mailing list