From e0a2affe5dce2c81dcc3e518a308771a20b76a5c Mon Sep 17 00:00:00 2001 From: Mark Mendoza Date: Mon, 3 Jun 2019 14:19:48 -0700 Subject: [PATCH] Remove additional error from error example (#1097) The example with `Concrete` and `Template` is supposed to highlight that adding properties to a protocol in the implementation of a method is not supported, and does not add to the required signature of the protocol. However, this also has the problem of `Concrete` not being a `Template` anyway because it is missing that `method`. --- pep-0544.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pep-0544.txt b/pep-0544.txt index 93e9dbded..d51ba65ad 100644 --- a/pep-0544.txt +++ b/pep-0544.txt @@ -368,6 +368,9 @@ Examples:: def __init__(self, name: str, value: int) -> None: self.name = name self.value = value + + def method(self) -> None: + return var: Template = Concrete('value', 42) # OK