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 bc7a612 commit b2d6174Copy full SHA for b2d6174
docs/source/cheat_sheet_py3.rst
@@ -25,11 +25,11 @@ we use it in most examples.
25
.. code-block:: python
26
27
# This is how you declare the type of a variable type in Python 3.6
28
- x: int = 1
+ age: int = 1
29
30
# In Python 3.5 and earlier you can use a type comment instead
31
# (equivalent to the previous definition)
32
- x = 1 # type: int
+ age = 1 # type: int
33
34
# You don't need to initialize a variable to annotate it
35
a: int # Ok (no value at runtime until assigned)
0 commit comments