diff options
author | robot-contrib <robot-contrib@yandex-team.com> | 2023-12-09 08:18:12 +0300 |
---|---|---|
committer | robot-contrib <robot-contrib@yandex-team.com> | 2023-12-09 08:35:25 +0300 |
commit | 1a5ddc956c05a593cbe2d043d5f4e190602d9b98 (patch) | |
tree | 7316ec45b1d291595bc6841b8e6416c3fddf1e93 /contrib/python/ipython/py3/IPython/core | |
parent | 5f8da71fa8b7ccef2ff0900693a77069bf8b4eab (diff) | |
download | ydb-1a5ddc956c05a593cbe2d043d5f4e190602d9b98.tar.gz |
Update contrib/python/ipython/py3 to 8.18.0
Diffstat (limited to 'contrib/python/ipython/py3/IPython/core')
-rw-r--r-- | contrib/python/ipython/py3/IPython/core/completerlib.py | 5 | ||||
-rw-r--r-- | contrib/python/ipython/py3/IPython/core/interactiveshell.py | 2 | ||||
-rw-r--r-- | contrib/python/ipython/py3/IPython/core/release.py | 4 |
3 files changed, 8 insertions, 3 deletions
diff --git a/contrib/python/ipython/py3/IPython/core/completerlib.py b/contrib/python/ipython/py3/IPython/core/completerlib.py index 74252dcfad..a970ba6968 100644 --- a/contrib/python/ipython/py3/IPython/core/completerlib.py +++ b/contrib/python/ipython/py3/IPython/core/completerlib.py @@ -164,7 +164,10 @@ def get_root_modules(): # Don't try to scan for modules every time. return list(sys.builtin_module_names) - rootmodules_cache = ip.db.get('rootmodules_cache', {}) + if getattr(ip.db, "_mock", False): + rootmodules_cache = {} + else: + rootmodules_cache = ip.db.get("rootmodules_cache", {}) rootmodules = list(sys.builtin_module_names) start_time = time() store = False diff --git a/contrib/python/ipython/py3/IPython/core/interactiveshell.py b/contrib/python/ipython/py3/IPython/core/interactiveshell.py index 0a528c51f2..67727404f9 100644 --- a/contrib/python/ipython/py3/IPython/core/interactiveshell.py +++ b/contrib/python/ipython/py3/IPython/core/interactiveshell.py @@ -42,6 +42,8 @@ try: except ModuleNotFoundError: class PickleShareDB: # type: ignore [no-redef] + _mock = True + def __init__(self, path): pass diff --git a/contrib/python/ipython/py3/IPython/core/release.py b/contrib/python/ipython/py3/IPython/core/release.py index 8a349a17c6..f79a43ab3b 100644 --- a/contrib/python/ipython/py3/IPython/core/release.py +++ b/contrib/python/ipython/py3/IPython/core/release.py @@ -16,8 +16,8 @@ # release. 'dev' as a _version_extra string means this is a development # version _version_major = 8 -_version_minor = 17 -_version_patch = 2 +_version_minor = 18 +_version_patch = 0 _version_extra = ".dev" # _version_extra = "rc1" _version_extra = "" # Uncomment this for full releases |