File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ def create_regex_scrubber(
1313) -> Scrubber :
1414 if isinstance (function_or_replace_string , str ):
1515 return lambda t : _replace_regex (t , regex , lambda _ : function_or_replace_string )
16- elif isinstance (function_or_replace_string , abc . Callable ):
16+ elif callable (function_or_replace_string ):
1717 return lambda t : _replace_regex (t , regex , function_or_replace_string )
1818 else :
1919 raise TypeError (
Original file line number Diff line number Diff line change @@ -14,9 +14,6 @@ disable_error_code = arg-type
1414[mypy-approvaltests.namer.inline_comparator]
1515disable_error_code = no-any-return
1616
17- [mypy-approvaltests.scrubbers.scrubbers]
18- disable_error_code = arg-type
19-
2017[mypy-approvaltests.reporters.default_reporter_factory]
2118disable_error_code = no-any-return
2219
You can’t perform that action at this time.
0 commit comments