[Python-checkins] bpo-43971: Add spaces around annotated arg default '=' (GH-25702)

terryjreedy webhook-mailer at python.org
Fri Apr 30 19:07:22 EDT 2021


https://github.com/python/cpython/commit/e726a902b7c73a7056b7421d801e47ffff255873
commit: e726a902b7c73a7056b7421d801e47ffff255873
branch: master
author: Mohamed Moselhy <look4d at gmail.com>
committer: terryjreedy <tjreedy at udel.edu>
date: 2021-04-30T19:06:55-04:00
summary:

bpo-43971: Add spaces around annotated arg default '=' (GH-25702)

Result: "quantity_on_hand: int = 0".

files:
M Doc/library/dataclasses.rst

diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst
index e4d2b57fd4292..0e8db5003f5fe 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



More information about the Python-checkins mailing list