mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix test expectations for enum rendering on Python 3.12.3 (#12293)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
parent
0d1e41feee
commit
943f6fbf9a
@ -1454,7 +1454,7 @@ class _EnumFormatter:
|
||||
"""Generate the brief part of the class being documented."""
|
||||
assert doc, f'enumeration class {self.target!r} should have an explicit docstring'
|
||||
|
||||
if sys.version_info[:2] >= (3, 13):
|
||||
if sys.version_info[:2] >= (3, 13) or sys.version_info[:3] >= (3, 12, 3):
|
||||
args = ('(value, names=<not given>, *values, module=None, '
|
||||
'qualname=None, type=None, start=1, boundary=None)')
|
||||
elif sys.version_info[:2] >= (3, 12):
|
||||
|
Loading…
Reference in New Issue
Block a user