diff --git a/docs/source/cheat_sheet_py3.rst b/docs/source/cheat_sheet_py3.rst index 7385a66863bf..102f32da2d69 100644 --- a/docs/source/cheat_sheet_py3.rst +++ b/docs/source/cheat_sheet_py3.rst @@ -222,7 +222,7 @@ When you're puzzled or when things are complicated .. code-block:: python - from typing import Union, Any, Optional, TYPE_CHECKING, cast + from typing import Any, TYPE_CHECKING, cast, reveal_type # To find out what type mypy infers for an expression anywhere in # your program, wrap it in reveal_type(). Mypy will print an error