Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/source/cheat_sheet_py3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ When you're puzzled or when things are complicated

# To find out what type mypy infers for an expression anywhere in
# your program, wrap it in reveal_type(). Mypy will print an error
# message with the type; remove it again before running the code.
# message with the type; remove it again before running the code, or
# import reveal_type from typing_extensions or typing (on Python 3.11 and newer).
reveal_type(1) # Revealed type is "builtins.int"

# If you initialize a variable with an empty container or "None"
Expand Down