diff --git a/CHANGES.rst b/CHANGES.rst index 60090eeee18..d240e7d26ff 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,12 @@ +Release 7.3.4 (released Apr 17, 2024) +===================================== + +Bugs fixed +---------- + +* Handle cases when ``Any`` is not an instance of ``type``. + Patch by Adam Turner. + Release 7.3.3 (released Apr 17, 2024) ===================================== diff --git a/sphinx/__init__.py b/sphinx/__init__.py index 6dcd841fe59..bfbdbb299c4 100644 --- a/sphinx/__init__.py +++ b/sphinx/__init__.py @@ -1,6 +1,6 @@ """The Sphinx documentation toolchain.""" -__version__ = '7.3.3' +__version__ = '7.3.4' __display_version__ = __version__ # used for command line version # Keep this file executable as-is in Python 3! @@ -28,7 +28,7 @@ #: #: .. versionadded:: 1.2 #: Before version 1.2, check the string ``sphinx.__version__``. -version_info = (7, 3, 3, 'final', 0) +version_info = (7, 3, 4, 'final', 0) package_dir = path.abspath(path.dirname(__file__)) diff --git a/sphinx/config.py b/sphinx/config.py index 84e20f6e59f..e4a3c99b008 100644 --- a/sphinx/config.py +++ b/sphinx/config.py @@ -532,7 +532,7 @@ def _validate_valid_types( return () if isinstance(valid_types, (frozenset, ENUM)): return valid_types - if isinstance(valid_types, type): + if isinstance(valid_types, type) or valid_types is Any: return frozenset((valid_types,)) if isinstance(valid_types, set): return frozenset(valid_types)