← Back to DAGDA | Support | Source: https://github.com/ambv/static-annotations/commit/47d5fb65b9b3e48c4ad8b162cd6e54e8dd8fe15f
Skip to content
This repository was archived by the owner on Jun 22, 2020. It is now read-only.

Commit 47d5fb6

Browse files
author
Lukasz Langa
committed
Add totally relative example to local name resolution in classes
1 parent 77623f6 commit 47d5fb6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎pep-0563.rst‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@ valid. They can use local names or the fully qualified name. Example::
247247
def method(self, arg: field) -> D.field2: # this is OK
248248
...
249249

250+
def method(self, arg: field) -> field2: # this is OK
251+
...
252+
250253
In the presence of an annotation that isn't a syntactically valid
251254
expression, SyntaxError is raised at compile time. However, since names
252255
aren't resolved at that time, no attempt is made to validate whether

0 commit comments

Comments
 (0)