diff --git a/pyproject.toml b/pyproject.toml index 39b18f23104..fd5f4ab3bcf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -97,7 +97,7 @@ lint = [ "sphinx-lint>=0.9", "types-colorama==0.4.15.20240311", "types-defusedxml==0.7.0.20250516", - "types-docutils==0.21.0.20250514", + "types-docutils==0.21.0.20250516", "types-Pillow==10.2.0.20240822", "types-Pygments==2.19.0.20250516", "types-requests==2.32.0.20250515", # align with requests @@ -165,7 +165,7 @@ type-stubs = [ # align with versions used elsewhere "types-colorama==0.4.15.20240311", "types-defusedxml==0.7.0.20250516", - "types-docutils==0.21.0.20250514", + "types-docutils==0.21.0.20250516", "types-Pillow==10.2.0.20240822", "types-Pygments==2.19.0.20250516", "types-requests==2.32.0.20250515", diff --git a/sphinx/builders/html/__init__.py b/sphinx/builders/html/__init__.py index 1ba026a61d0..9cb7b239e2b 100644 --- a/sphinx/builders/html/__init__.py +++ b/sphinx/builders/html/__init__.py @@ -162,7 +162,7 @@ def __init__(self, app: Sphinx, env: BuildEnvironment) -> None: source_class=DocTreeInput, destination=StringOutput(encoding='unicode'), ) - pub.get_settings(output_encoding='unicode', traceback=True) + pub.get_settings(output_encoding='unicode', traceback=True) # type: ignore[no-untyped-call] self._publisher = pub def init(self) -> None: diff --git a/sphinx/io.py b/sphinx/io.py index 009cd38bf68..0d78c19ef3b 100644 --- a/sphinx/io.py +++ b/sphinx/io.py @@ -186,5 +186,5 @@ def create_publisher(app: Sphinx, filetype: str) -> Publisher: # Propagate exceptions by default when used programmatically: defaults = {'traceback': True, **app.env.settings} # Set default settings - pub.get_settings(**defaults) + pub.get_settings(**defaults) # type: ignore[no-untyped-call] return pub