Backport PR #38715 on branch 1.2.x (CI: pin jedi version<0.18.0)
diff --git a/ci/deps/azure-38-locale.yaml b/ci/deps/azure-38-locale.yaml
index 90cd11037e472..15d503e8fd0a5 100644
--- a/ci/deps/azure-38-locale.yaml
+++ b/ci/deps/azure-38-locale.yaml
@@ -18,6 +18,7 @@ dependencies:
   - html5lib
   - ipython
   - jinja2
+  - jedi<0.18.0
   - lxml
   - matplotlib <3.3.0
   - moto

Backport PR #38715: CI: pin jedi version<0.18.0