We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18a35d1 commit 1b18050Copy full SHA for 1b18050
graalpython/lib-graalpython/type.py
@@ -43,8 +43,9 @@
43
# TODO: REMOVEME, temporary patch for coroutines
44
async def _c(): pass
45
_c = _c()
46
-def _coro_close(*args):
47
- pass
48
ctype = type(_c)
49
-ctype.close = _coro_close
+if not hasattr(ctype, "close"):
+ def _coro_close():
+ pass
50
+ ctype.close = _coro_close
51
# TODO -----------------------------------------------------------------------------------------------------------------
0 commit comments