From 56b23981c1149a2b2dece05a2eaefb0787f34e15 Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Tue, 13 Jan 2026 06:54:34 -0500 Subject: Hopefully fix macOS documentation build error. System Python on macOS is still 3.9, so match/case doesn't exist. --- api-docs/source/conf.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'api-docs') diff --git a/api-docs/source/conf.py b/api-docs/source/conf.py index b7d75026..9b8f0dc8 100644 --- a/api-docs/source/conf.py +++ b/api-docs/source/conf.py @@ -90,15 +90,13 @@ def fnlist(module): def get_autodoc_info(name, ref): """Returns (role, directive, needs_members) for a given reference.""" - match ref: - case _ if inspect.isclass(ref) and issubclass(ref, Exception): - return ('py:exc', 'autoexception', True) - case _ if inspect.isclass(ref): - return ('py:class', 'autoclass', True) - case _ if inspect.isfunction(ref): - return ('py:func', 'autofunction', False) - case _: - raise TypeError(f"Unhandled type for {name}: {type(ref)}") + if inspect.isclass(ref) and issubclass(ref, Exception): + return ('py:exc', 'autoexception', True) + if inspect.isclass(ref): + return ('py:class', 'autoclass', True) + if inspect.isfunction(ref): + return ('py:func', 'autofunction', False) + raise TypeError(f"Unhandled type for {name}: {type(ref)}") def get_docstring_summary(name, ref): """Returns a truncated summary of the docstring for a given reference.""" -- cgit v1.3.1