mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 05:54:25 +08:00
Test keyword extraction
This commit is contained in:
@@ -93,3 +93,13 @@ class Foo(foo.Bar):
|
||||
x = foo.Bar
|
||||
class Foo(x):
|
||||
pass
|
||||
# -------------------------------------------------- keyword-pass
|
||||
#? 12 error {'new_name': 'x'}
|
||||
def x(): pass
|
||||
# ++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
Cannot extract a keyword
|
||||
# -------------------------------------------------- keyword-continue
|
||||
#? 5 error {'new_name': 'x'}
|
||||
continue
|
||||
# ++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
Cannot extract a keyword
|
||||
|
||||
Reference in New Issue
Block a user