File tree 2 files changed +1
-4
lines changed 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ def create_regex_scrubber(
13
13
) -> Scrubber :
14
14
if isinstance (function_or_replace_string , str ):
15
15
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 ):
17
17
return lambda t : _replace_regex (t , regex , function_or_replace_string )
18
18
else :
19
19
raise TypeError (
Original file line number Diff line number Diff line change @@ -14,9 +14,6 @@ disable_error_code = arg-type
14
14
[mypy-approvaltests.namer.inline_comparator]
15
15
disable_error_code = no-any-return
16
16
17
- [mypy-approvaltests.scrubbers.scrubbers]
18
- disable_error_code = arg-type
19
-
20
17
[mypy-approvaltests.reporters.default_reporter_factory]
21
18
disable_error_code = no-any-return
22
19
You can’t perform that action at this time.
0 commit comments