diff options
author | Mohamed Moselhy <look4d@gmail.com> | 2021-04-30 19:06:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-30 19:06:55 -0400 |
commit | e726a902b7c73a7056b7421d801e47ffff255873 (patch) | |
tree | a0a6cc60f3f0de6996e567b14bfc4af28fed6954 | |
parent | e08c67372d62236409da296353827985a3202e8a (diff) | |
download | cpython-git-e726a902b7c73a7056b7421d801e47ffff255873.tar.gz |
bpo-43971: Add spaces around annotated arg default '=' (GH-25702)
Result: "quantity_on_hand: int = 0".
-rw-r--r-- | Doc/library/dataclasses.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst index e4d2b57fd4..0e8db5003f 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 |