diff options
| author | Alexander Taylor <alex@vector35.com> | 2026-01-13 06:54:34 -0500 |
|---|---|---|
| committer | Alexander Taylor <alex@vector35.com> | 2026-01-13 07:32:48 -0500 |
| commit | 56b23981c1149a2b2dece05a2eaefb0787f34e15 (patch) | |
| tree | 68fea754c4881d3b8817dbb10d7a5ee87fa2a6a6 /api-docs/source | |
| parent | 981f452dcd5dfc5c6cf165fa2495e0191c6851c1 (diff) | |
Hopefully fix macOS documentation build error.
System Python on macOS is still 3.9, so match/case doesn't exist.
Diffstat (limited to 'api-docs/source')
| -rw-r--r-- | api-docs/source/conf.py | 16 |
1 files changed, 7 insertions, 9 deletions
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.""" |
