diff options
author | robot-contrib <robot-contrib@yandex-team.com> | 2023-10-14 09:57:42 +0300 |
---|---|---|
committer | robot-contrib <robot-contrib@yandex-team.com> | 2023-10-14 10:17:49 +0300 |
commit | f13bfc9a1e469983083b02e19cf963678ace66c0 (patch) | |
tree | 08bbf5b3ec11f1ce4aa614c451089b74caec35e2 /contrib/python/ipython/py3/IPython/terminal/embed.py | |
parent | 82c487106cdf6fa8ae9a18967e53de52fb52e4e8 (diff) | |
download | ydb-f13bfc9a1e469983083b02e19cf963678ace66c0.tar.gz |
Update contrib/python/ipython/py3 to 8.16.0
Diffstat (limited to 'contrib/python/ipython/py3/IPython/terminal/embed.py')
-rw-r--r-- | contrib/python/ipython/py3/IPython/terminal/embed.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/python/ipython/py3/IPython/terminal/embed.py b/contrib/python/ipython/py3/IPython/terminal/embed.py index ce5ee01ff1..59fa610677 100644 --- a/contrib/python/ipython/py3/IPython/terminal/embed.py +++ b/contrib/python/ipython/py3/IPython/terminal/embed.py @@ -158,6 +158,12 @@ class InteractiveShellEmbed(TerminalInteractiveShell): assert ( "user_global_ns" not in kw ), "Key word argument `user_global_ns` has been replaced by `user_module` since IPython 4.0." + # temporary fix for https://github.com/ipython/ipython/issues/14164 + cls = type(self) + if cls._instance is None: + for subclass in cls._walk_mro(): + subclass._instance = self + cls._instance = self clid = kw.pop('_init_location_id', None) if not clid: |