1
0
forked from VimPlug/jedi

Use the await method properly and just use it instead of some crazy things

This commit is contained in:
Dave Halter
2018-02-21 00:27:15 +01:00
parent bf01b9d47c
commit bc0210af70
3 changed files with 8 additions and 11 deletions

View File

@@ -18,7 +18,8 @@ class AsyncBase(BuiltinOverwrite):
class Coroutine(AsyncBase):
special_object_identifier = u'COROUTINE_TYPE'
def execute_await(self):
@publish_method('__await__')
def _await(self):
return self._func_execution_context.get_return_values()