@@ -134,7 +134,7 @@ def __init__(
134134 if tags :
135135 self .tags_hash = get_stable_hash (sorted (tags ))
136136
137- def __eq__ (self , other : BuildInfo ) -> bool : # type: ignore
137+ def __eq__ (self , other : BuildInfo ) -> bool : # type: ignore[override]
138138 return (self .config_hash == other .config_hash and
139139 self .tags_hash == other .tags_hash )
140140
@@ -1189,7 +1189,7 @@ def convert_html_css_files(app: Sphinx, config: Config) -> None:
11891189 logger .warning (__ ('invalid css_file: %r, ignored' ), entry )
11901190 continue
11911191
1192- config .html_css_files = html_css_files # type: ignore
1192+ config .html_css_files = html_css_files # type: ignore[attr-defined]
11931193
11941194
11951195def convert_html_js_files (app : Sphinx , config : Config ) -> None :
@@ -1206,7 +1206,7 @@ def convert_html_js_files(app: Sphinx, config: Config) -> None:
12061206 logger .warning (__ ('invalid js_file: %r, ignored' ), entry )
12071207 continue
12081208
1209- config .html_js_files = html_js_files # type: ignore
1209+ config .html_js_files = html_js_files # type: ignore[attr-defined]
12101210
12111211
12121212def setup_resource_paths (app : Sphinx , pagename : str , templatename : str ,
@@ -1229,7 +1229,7 @@ def validate_math_renderer(app: Sphinx) -> None:
12291229 if app .builder .format != 'html' :
12301230 return
12311231
1232- name = app .builder .math_renderer_name # type: ignore
1232+ name = app .builder .math_renderer_name # type: ignore[attr-defined]
12331233 if name is None :
12341234 raise ConfigError (__ ('Many math_renderers are registered. '
12351235 'But no math_renderer is selected.' ))
@@ -1269,7 +1269,7 @@ def validate_html_logo(app: Sphinx, config: Config) -> None:
12691269 not path .isfile (path .join (app .confdir , config .html_logo )) and
12701270 not isurl (config .html_logo )):
12711271 logger .warning (__ ('logo file %r does not exist' ), config .html_logo )
1272- config .html_logo = None # type: ignore
1272+ config .html_logo = None # type: ignore[attr-defined]
12731273
12741274
12751275def validate_html_favicon (app : Sphinx , config : Config ) -> None :
@@ -1278,7 +1278,7 @@ def validate_html_favicon(app: Sphinx, config: Config) -> None:
12781278 not path .isfile (path .join (app .confdir , config .html_favicon )) and
12791279 not isurl (config .html_favicon )):
12801280 logger .warning (__ ('favicon file %r does not exist' ), config .html_favicon )
1281- config .html_favicon = None # type: ignore
1281+ config .html_favicon = None # type: ignore[attr-defined]
12821282
12831283
12841284def error_on_html_4 (_app : Sphinx , config : Config ) -> None :
0 commit comments