diff --git a/pep-0563.rst b/pep-0563.rst index ac98282a4..3200edf30 100644 --- a/pep-0563.rst +++ b/pep-0563.rst @@ -259,14 +259,15 @@ valid. They can use local names or the fully qualified name. Example:: def method(self) -> C.D.field2: # this is OK ... - def method(self) -> D.field2: # this is OK - ... + def method(self) -> D.field2: # this FAILS, class D is local to C + ... # and is therefore only available + # as C.D. def method(self) -> field2: # this is OK ... def method(self) -> field: # this FAILS, class D doesn't - ... # see C's attributes, This was + ... # see C's attributes. This was # already true before this PEP. In the presence of an annotation that isn't a syntactically valid