mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-10 07:41:51 +08:00
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