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 1b1da7a commit d14195dCopy full SHA for d14195d
docs/reference/quality.rst
@@ -44,6 +44,11 @@ then the following file tests ``foo.py``:
44
45
assert_type(bar(42), str)
46
47
+.. note::
48
+
49
+ To use this feature on Python versions earlier than 3.11, you will need to
50
+ import ``assert_type`` from ``typing_extensions`` (version 4.2 or newer).
51
52
Clever use of ``mypy --warn-unused-ignores`` can be used to check that certain
53
expressions are or are not well-typed. The idea is to have valid expressions along
54
with invalid expressions annotated with ``type: ignore`` comments. When
0 commit comments