@@ -98,10 +98,11 @@ def replace_deprecated_tool_names(self) -> list[str]:
9898
9999 def get_output_report (self ) -> list [tuple [str , list [str ]]]:
100100 # Get the output formatter
101+ output_report : list [tuple [str , list [str ]]]
101102 if self .config .output_format is not None :
102103 output_report = self .config .output_format
103104 else :
104- output_report = [(self .profile .output_format , self .profile .output_target )]
105+ output_report = [(self .profile .output_format , self .profile .output_target )] # type: ignore[list-item]
105106
106107 for index , report in enumerate (output_report ):
107108 if not all (report ):
@@ -262,7 +263,7 @@ def _determine_tool_runners(self, config: setoptconf.config.Configuration, profi
262263
263264 def _determine_ignores (
264265 self , config : setoptconf .config .Configuration , profile : ProspectorProfile , libraries : list [str ]
265- ) -> list [re .Pattern ]:
266+ ) -> list [re .Pattern [ str ] ]:
266267 # Grab ignore patterns from the options
267268 ignores = []
268269 for pattern in config .ignore_patterns + profile .ignore_patterns :
@@ -300,7 +301,7 @@ def get_summary_information(self) -> dict[str, Any]:
300301 }
301302
302303 def exit_with_zero_on_success (self ) -> bool :
303- return self .config .zero_exit
304+ return self .config .zero_exit # type: ignore[no-any-return]
304305
305306 def get_disabled_messages (self , tool_name : str ) -> list [str ]:
306307 return self .profile .get_disabled_messages (tool_name )
@@ -314,51 +315,51 @@ def tool_options(self, tool_name: str) -> dict[str, str]:
314315 tool = getattr (self .profile , tool_name , None )
315316 if tool is None :
316317 return {}
317- return tool .get ("options" , {})
318+ return tool .get ("options" , {}) # type: ignore[no-any-return]
318319
319320 def external_config_location (self , tool_name : str ) -> Optional [Path ]:
320321 return getattr (self .config , "%s_config_file" % tool_name , None )
321322
322323 @property
323324 def die_on_tool_error (self ) -> bool :
324- return self .config .die_on_tool_error
325+ return self .config .die_on_tool_error # type: ignore[no-any-return]
325326
326327 @property
327328 def summary_only (self ) -> bool :
328- return self .config .summary_only
329+ return self .config .summary_only # type: ignore[no-any-return]
329330
330331 @property
331332 def messages_only (self ) -> bool :
332- return self .config .messages_only
333+ return self .config .messages_only # type: ignore[no-any-return]
333334
334335 @property
335336 def quiet (self ) -> bool :
336- return self .config .quiet
337+ return self .config .quiet # type: ignore[no-any-return]
337338
338339 @property
339340 def blending (self ) -> bool :
340- return self .config .blending
341+ return self .config .blending # type: ignore[no-any-return]
341342
342343 @property
343344 def absolute_paths (self ) -> bool :
344- return self .config .absolute_paths
345+ return self .config .absolute_paths # type: ignore[no-any-return]
345346
346347 @property
347348 def max_line_length (self ) -> int :
348- return self .config .max_line_length
349+ return self .config .max_line_length # type: ignore[no-any-return]
349350
350351 @property
351352 def include_tool_stdout (self ) -> bool :
352- return self .config .include_tool_stdout
353+ return self .config .include_tool_stdout # type: ignore[no-any-return]
353354
354355 @property
355356 def direct_tool_stdout (self ) -> bool :
356- return self .config .direct_tool_stdout
357+ return self .config .direct_tool_stdout # type: ignore[no-any-return]
357358
358359 @property
359360 def show_profile (self ) -> bool :
360- return self .config .show_profile
361+ return self .config .show_profile # type: ignore[no-any-return]
361362
362363 @property
363364 def legacy_tool_names (self ) -> bool :
364- return self .config .legacy_tool_names
365+ return self .config .legacy_tool_names # type: ignore[no-any-return]
0 commit comments