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 3a0bb1e commit 6004ccfCopy full SHA for 6004ccf
src/mkdocstrings_handlers/python/_internal/handler.py
@@ -408,6 +408,10 @@ def get_handler(
408
Returns:
409
An instance of `PythonHandler`.
410
"""
411
+ # In rare cases, Griffe hits the recursion limit because of deeply-nested ASTs.
412
+ # We therefore increase the limit here, once, before Griffe is used to collect or render stuff.
413
+ sys.setrecursionlimit(max(sys.getrecursionlimit(), 2000))
414
+
415
base_dir = Path(tool_config.config_file_path or "./mkdocs.yml").parent
416
if "inventories" not in handler_config and "import" in handler_config:
417
warn("The 'import' key is renamed 'inventories' for the Python handler", FutureWarning, stacklevel=1)
0 commit comments