Skip to content

Commit 606bb1c

Browse files
bpo-43971: Add spaces around annotated arg default '=' (GH-25702)
Result: "quantity_on_hand: int = 0". (cherry picked from commit e726a90) Co-authored-by: Mohamed Moselhy <[email protected]> Co-authored-by: Mohamed Moselhy <[email protected]>
1 parent e377ecf commit 606bb1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/dataclasses.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ using :pep:`526` type annotations. For example this code::
3333

3434
Will add, among other things, a :meth:`__init__` that looks like::
3535

36-
def __init__(self, name: str, unit_price: float, quantity_on_hand: int=0):
36+
def __init__(self, name: str, unit_price: float, quantity_on_hand: int = 0):
3737
self.name = name
3838
self.unit_price = unit_price
3939
self.quantity_on_hand = quantity_on_hand

0 commit comments

Comments
 (0)