From bffd852f50e2f09a70c7bd11dc969512657bdcfa Mon Sep 17 00:00:00 2001 From: Winston Chang Date: Tue, 18 Jun 2024 10:17:11 -0500 Subject: [PATCH 1/2] Update quartodoc dependencies --- setup.cfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.cfg b/setup.cfg index e87c6e3b8..6da48d784 100644 --- a/setup.cfg +++ b/setup.cfg @@ -115,9 +115,9 @@ doc = jupyter_client < 8.0.0 tabulate shinylive - pydantic==1.10 - quartodoc==0.7.2 - griffe==0.33.0 + pydantic>=2.7.4 + quartodoc==0.7.5 + griffe [options.packages.find] include = shiny, shiny.* From b14b3bb53cc730d56fdc15f8825c87a00f031aaf Mon Sep 17 00:00:00 2001 From: Winston Chang Date: Tue, 18 Jun 2024 10:50:00 -0500 Subject: [PATCH 2/2] Add workaround for griffe behavior change --- docs/_renderer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/_renderer.py b/docs/_renderer.py index 3fe496737..3288556c0 100644 --- a/docs/_renderer.py +++ b/docs/_renderer.py @@ -280,7 +280,9 @@ def check_if_missing_expected_example(el, converted): return def is_no_ex_decorator(x): - if x == "no_example()": + # With griffe<0.42.0, it kept parentheses on decorators, but as of 0.42.0, it + # removes them. At some point in the future we can just use the no-parens case. + if x == "no_example()" or x == "no_example": return True no_ex_decorators = [