mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
bpo-41199: Docstring convention not followed for dataclasses documentation page (GH-21413)
Automerge-Triggered-By: @ericvsmith
This commit is contained in:
parent
ee96f32ca2
commit
61bb24a270
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ using :pep:`526` type annotations. For example this code::
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class InventoryItem:
|
class InventoryItem:
|
||||||
'''Class for keeping track of an item in inventory.'''
|
"""Class for keeping track of an item in inventory."""
|
||||||
name: str
|
name: str
|
||||||
unit_price: float
|
unit_price: float
|
||||||
quantity_on_hand: int = 0
|
quantity_on_hand: int = 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue