@@ -465,7 +465,7 @@ def set_option(self, option_name: str, value: Union[TConfigValueIn, TConfigSecti
465
465
"""
466
466
# Special-cased options.
467
467
if option_name == "paths" :
468
- self .paths = value # type: ignore
468
+ self .paths = value # type: ignore[assignment]
469
469
return
470
470
471
471
# Check all the hard-coded options.
@@ -478,7 +478,7 @@ def set_option(self, option_name: str, value: Union[TConfigValueIn, TConfigSecti
478
478
# See if it's a plugin option.
479
479
plugin_name , _ , key = option_name .partition (":" )
480
480
if key and plugin_name in self .plugins :
481
- self .plugin_options .setdefault (plugin_name , {})[key ] = value # type: ignore
481
+ self .plugin_options .setdefault (plugin_name , {})[key ] = value # type: ignore[index]
482
482
return
483
483
484
484
# If we get here, we didn't find the option.
@@ -496,13 +496,13 @@ def get_option(self, option_name: str) -> Optional[TConfigValueOut]:
496
496
"""
497
497
# Special-cased options.
498
498
if option_name == "paths" :
499
- return self .paths # type: ignore
499
+ return self .paths # type: ignore[return-value]
500
500
501
501
# Check all the hard-coded options.
502
502
for option_spec in self .CONFIG_FILE_OPTIONS :
503
503
attr , where = option_spec [:2 ]
504
504
if where == option_name :
505
- return getattr (self , attr ) # type: ignore
505
+ return getattr (self , attr ) # type: ignore[no-any-return]
506
506
507
507
# See if it's a plugin option.
508
508
plugin_name , _ , key = option_name .partition (":" )
0 commit comments