Skip to content

Commit 5390e21

Browse files
committed
Ignore type errors from using untyped get_settings from docutils
1 parent cbdd396 commit 5390e21

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sphinx/builders/html/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def __init__(self, app: Sphinx, env: BuildEnvironment) -> None:
162162
source_class=DocTreeInput,
163163
destination=StringOutput(encoding='unicode'),
164164
)
165-
pub.get_settings(output_encoding='unicode', traceback=True)
165+
pub.get_settings(output_encoding='unicode', traceback=True) # type: ignore[no-untyped-call]
166166
self._publisher = pub
167167

168168
def init(self) -> None:

sphinx/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,5 +186,5 @@ def create_publisher(app: Sphinx, filetype: str) -> Publisher:
186186
# Propagate exceptions by default when used programmatically:
187187
defaults = {'traceback': True, **app.env.settings}
188188
# Set default settings
189-
pub.get_settings(**defaults)
189+
pub.get_settings(**defaults) # type: ignore[no-untyped-call]
190190
return pub

0 commit comments

Comments
 (0)