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`.
This commit is contained in:
Mark Mendoza 2019-06-03 14:19:48 -07:00 committed by Ivan Levkivskyi
parent 5a3ff934c5
commit e0a2affe5d
1 changed files with 3 additions and 0 deletions

View File

@ -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