We recognize name: str as "action", but this conflicts with the dataclass stuff. It is best for us to disallow indented action name.
from dataclasses import dataclass
@dataclass
class InventoryItem:
"""Class for keeping track of an item in inventory."""
name: str
unit_price: float
quantity_on_hand: int = 0
We recognize
name: str
as "action", but this conflicts with the dataclass stuff. It is best for us to disallow indented action name.