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 431e33f commit d290deeCopy full SHA for d290dee
docs/source/error_code_list.rst
@@ -224,6 +224,7 @@ The preferred way to annotate the type of `None` is `None`.
224
`NoneType` is equivalent, but mypy won't allow it by default.
225
226
.. code-block:: python
227
+
228
from types import NoneType
229
def f(x: None) -> None:
230
reveal_type(x) # note: Revealed type is "None"
0 commit comments