We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9c365e commit 9a6ea49Copy full SHA for 9a6ea49
docs/guides/unreachable.rst
@@ -72,6 +72,11 @@ As an example, consider this simple calculator:
72
case _:
73
assert_never(op)
74
75
+.. note::
76
+
77
+ To use this feature on Python versions earlier than 3.11, you will need to
78
+ import ``Never`` from ``typing_extensions`` (version 4.1 or newer).
79
80
The ``match`` statement covers all members of the ``Op`` enum,
81
so the ``assert_never()`` call is unreachable and the type checker
82
will accept this code. However, if you add another member to the
0 commit comments