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 266be2d commit 5f0d9e6Copy full SHA for 5f0d9e6
1 file changed
src/griffe/_internal/cli.py
@@ -563,6 +563,9 @@ def main(args: list[str] | None = None) -> int:
563
else:
564
logging.basicConfig(format="%(levelname)-10s %(message)s", level=level)
565
566
+ # Increase maximum recursion limit to 2000.
567
+ sys.setrecursionlimit(max(2000, sys.getrecursionlimit()))
568
+
569
# Run subcommand.
570
commands: dict[str, Callable[..., int]] = {"check": check, "dump": dump}
571
return commands[subcommand](**opts_dict)
0 commit comments