Better checking of annotations/params and nonlocals/globals.

This commit is contained in:
Dave Halter
2017-07-30 12:23:17 +02:00
parent b7726d05cf
commit 2420f57a5c
3 changed files with 71 additions and 6 deletions

View File

@@ -49,3 +49,8 @@ except ZeroDivisionError:
class X():
nonlocal a
def glob():
global x
y: foo = x