forked from VimPlug/jedi
Fix __enter__ Self resolving
This commit is contained in:
@@ -779,7 +779,7 @@ def tree_name_to_values(inference_state, context, tree_name):
|
|||||||
coro = enter_methods.execute_with_values()
|
coro = enter_methods.execute_with_values()
|
||||||
return coro.py__await__().py__stop_iteration_returns()
|
return coro.py__await__().py__stop_iteration_returns()
|
||||||
enter_methods = value_managers.py__getattribute__('__enter__')
|
enter_methods = value_managers.py__getattribute__('__enter__')
|
||||||
return enter_methods.execute_with_values()
|
return enter_methods.execute_annotation(context)
|
||||||
elif typ in ('import_from', 'import_name'):
|
elif typ in ('import_from', 'import_name'):
|
||||||
types = imports.infer_import(context, tree_name)
|
types = imports.infer_import(context, tree_name)
|
||||||
elif typ in ('funcdef', 'classdef'):
|
elif typ in ('funcdef', 'classdef'):
|
||||||
|
|||||||
@@ -388,7 +388,8 @@ with open('') as f:
|
|||||||
#? ['closed']
|
#? ['closed']
|
||||||
f.closed
|
f.closed
|
||||||
for line in f:
|
for line in f:
|
||||||
#? str() bytes()
|
# TODO this is wrong
|
||||||
|
#? bytes()
|
||||||
line
|
line
|
||||||
|
|
||||||
with open('') as f1, open('') as f2:
|
with open('') as f1, open('') as f2:
|
||||||
|
|||||||
Reference in New Issue
Block a user