From: Mohamed Moselhy Date: Fri, 30 Apr 2021 23:06:55 +0000 (-0400) Subject: bpo-43971: Add spaces around annotated arg default '=' (GH-25702) X-Git-Tag: v3.10.0b1~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e726a902b7c73a7056b7421d801e47ffff255873;p=thirdparty%2FPython%2Fcpython.git bpo-43971: Add spaces around annotated arg default '=' (GH-25702) Result: "quantity_on_hand: int = 0". --- diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst index e4d2b57fd429..0e8db5003f5f 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