From c84fa60f85127cea3ba620034cebf023b0660bed 2021-09-05 22:09:40 From: Artur Svistunov Date: 2021-09-05 22:09:40 Subject: [PATCH] declare `MaybeAsyncCompile.__call__()` as a method --- diff --git a/IPython/core/inputtransformer2.py b/IPython/core/inputtransformer2.py index c9e3f8c..53e114c 100644 --- a/IPython/core/inputtransformer2.py +++ b/IPython/core/inputtransformer2.py @@ -782,7 +782,8 @@ class MaybeAsyncCompile(Compile): super().__init__() self.flags |= extra_flags - __call__ = compile + def __call__(self, *args, **kwds): + return compile(*args, **kwds) class MaybeAsyncCommandCompiler(CommandCompiler):