summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-05-01 00:31:00 (GMT)
committerGitHub <noreply@github.com>2021-05-01 00:31:00 (GMT)
commit606bb1c77c66eca081d03374ad4b53d9e603dd9d (patch)
tree08d64a3d60254803a874442e4622bb89a66d13a5
parente377ecf3b496c7719e6dffe3ebf3d0ef512cfb5b (diff)
downloadcpython-606bb1c77c66eca081d03374ad4b53d9e603dd9d.zip
cpython-606bb1c77c66eca081d03374ad4b53d9e603dd9d.tar.gz
cpython-606bb1c77c66eca081d03374ad4b53d9e603dd9d.tar.bz2
bpo-43971: Add spaces around annotated arg default '=' (GH-25702)
Result: "quantity_on_hand: int = 0". (cherry picked from commit e726a902b7c73a7056b7421d801e47ffff255873) Co-authored-by: Mohamed Moselhy <look4d@gmail.com> Co-authored-by: Mohamed Moselhy <look4d@gmail.com>
-rw-r--r--Doc/library/dataclasses.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst
index 9b53372..c47ee0a 100644
--- a/Doc/library/dataclasses.rst
+++ b/Doc/library/dataclasses.rst
@@ -33,7 +33,7 @@ using :pep:`526` type annotations. For example this code::
Will add, among other things, a :meth:`__init__` that looks like::
- def __init__(self, name: str, unit_price: float, quantity_on_hand: int=0):
+ def __init__(self, name: str, unit_price: float, quantity_on_hand: int = 0):
self.name = name
self.unit_price = unit_price
self.quantity_on_hand = quantity_on_hand