Skip to content

Commit 49113ea

Browse files
authored
Docs: import reveal_type
In cheat sheet added import of reveal_type used in sample code
1 parent 40730c9 commit 49113ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/cheat_sheet_py3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ When you're puzzled or when things are complicated
222222

223223
.. code-block:: python
224224
225-
from typing import Union, Any, Optional, TYPE_CHECKING, cast
225+
from typing import Any, TYPE_CHECKING, cast, reveal_type
226226
227227
# To find out what type mypy infers for an expression anywhere in
228228
# your program, wrap it in reveal_type(). Mypy will print an error

0 commit comments

Comments
 (0)