forked from VimPlug/jedi
simple generator static analysis subscript check
This commit is contained in:
8
test/static_analysis/generators.py
Normal file
8
test/static_analysis/generators.py
Normal file
@@ -0,0 +1,8 @@
|
||||
def generator():
|
||||
yield 1
|
||||
|
||||
#! type-error-generator
|
||||
generator()[0]
|
||||
|
||||
list(generator())[0]
|
||||
|
||||
Reference in New Issue
Block a user