We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5726771 commit eec7fb4Copy full SHA for eec7fb4
src/mkdocstrings/_internal/handlers/base.py
@@ -7,6 +7,7 @@
7
import datetime
8
import importlib
9
import inspect
10
+import ssl
11
import sys
12
from concurrent import futures
13
from io import BytesIO
@@ -753,6 +754,11 @@ def _download_inventories(self) -> None:
753
754
to_download.extend((handler, url, conf) for url, conf in inv_configs)
755
756
if to_download:
757
+ # YORE: EOL 3.12: Remove block.
758
+ # NOTE: Create context in main thread to fix issue
759
+ # https://github.com/mkdocstrings/mkdocstrings/issues/796.
760
+ _ = ssl.create_default_context()
761
+
762
thread_pool = futures.ThreadPoolExecutor(4)
763
for handler, url, conf in to_download:
764
_logger.debug("Downloading inventory from %s", url)
0 commit comments