mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix mypy violations
This commit is contained in:
@@ -289,7 +289,7 @@ def read_doc(app, env, filename):
|
||||
source_class=SphinxDummySourceClass,
|
||||
destination=NullOutput())
|
||||
pub.set_components(None, 'restructuredtext', None)
|
||||
pub.process_programmatic_settings(None, env.settings, None) # type: ignore
|
||||
pub.process_programmatic_settings(None, env.settings, None)
|
||||
pub.set_source(source, filename)
|
||||
pub.publish()
|
||||
return pub.document
|
||||
|
@@ -374,7 +374,7 @@ class SphinxSmartQuotes(SmartQuotes, SphinxTransform):
|
||||
return False
|
||||
|
||||
# confirm selected language supports smart_quotes or not
|
||||
language = self.env.settings['language_code'] # type: ignore
|
||||
language = self.env.settings['language_code']
|
||||
for tag in normalize_language_tag(language):
|
||||
if tag in smartchars.quotes:
|
||||
return True
|
||||
|
Reference in New Issue
Block a user