File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,19 @@ Underscores in numeric literals (`PEP 515 <https://www.python.org/dev/peps/pep-0
63
63
Python 3.6 feature: numeric literals can contain underscores,
64
64
e.g. ``1_000_000 ``.
65
65
66
- Mypy does not yet support this.
66
+ Mypy fully supports this syntax:
67
+
68
+ .. code-block :: python
69
+
70
+ precise_val = 1_000_000.000_000_1
71
+ hexes: List[int ] = []
72
+ hexes.append(0x _FF_FF_FF_FF )
73
+
74
+ .. note ::
75
+
76
+ This requires the ``--fast-parser `` flag and it requires that the
77
+ `typed_ast <https://pypi.python.org/pypi/typed-ast >`_ package is
78
+ installed and has at least version 0.6.2. Use ``pip3 install -U typed_ast ``.
67
79
68
80
Asynchronous generators (`PEP 525 <https://www.python.org/dev/peps/pep-0525 >`_)
69
81
-------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments