From 98e48b8c518b7a471ec8b4dc27f65c86aea1fb44 Mon Sep 17 00:00:00 2001 From: "Eric V. Smith" Date: Thu, 30 Nov 2017 08:22:07 -0500 Subject: [PATCH] Fix typos. --- pep-0557.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pep-0557.rst b/pep-0557.rst index ab7967b25..4e66872a3 100644 --- a/pep-0557.rst +++ b/pep-0557.rst @@ -31,7 +31,7 @@ variables with type annotations as defined in PEP 526, "Syntax for Variable Annotations". In this document, such variables are called fields. Using these fields, the decorator adds generated method definitions to the class to support instance initialization, a repr, -comparisons methods, and optionally other methods as described in the +comparison methods, and optionally other methods as described in the Specification_ section. Such a class is called a Data Class, but there's really nothing special about the class: the decorator adds generated methods to the class and returns the same class it was @@ -83,7 +83,7 @@ to the InventoryItem class:: return (self.name, self.unit_price, self.quantity_on_hand) >= (other.name, other.unit_price, other.quantity_on_hand) return NotImplemented -Data Classes saves you from writing and maintaining these methods. +Data Classes save you from writing and maintaining these methods. Rationale =========