summaryrefslogtreecommitdiff
path: root/dev-python/jedi/files/jedi-0.18.1-python3.11.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/jedi/files/jedi-0.18.1-python3.11.patch')
-rw-r--r--dev-python/jedi/files/jedi-0.18.1-python3.11.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/dev-python/jedi/files/jedi-0.18.1-python3.11.patch b/dev-python/jedi/files/jedi-0.18.1-python3.11.patch
new file mode 100644
index 000000000000..b708881e4f8d
--- /dev/null
+++ b/dev-python/jedi/files/jedi-0.18.1-python3.11.patch
@@ -0,0 +1,16 @@
+diff --git a/jedi/inference/compiled/subprocess/functions.py b/jedi/inference/compiled/subprocess/functions.py
+index 5070c6643..bbc14c392 100644
+--- a/jedi/inference/compiled/subprocess/functions.py
++++ b/jedi/inference/compiled/subprocess/functions.py
+@@ -151,7 +151,11 @@ def _find_module(string, path=None, full_name=None, is_global_search=True):
+
+ spec = find_spec(string, p)
+ if spec is not None:
++ if spec.origin == "frozen":
++ continue
++
+ loader = spec.loader
++
+ if loader is None and not spec.has_location:
+ # This is a namespace package.
+ full_name = string if not path else full_name