Skip to content

Commit bf2e659

Browse files
committed
- r fix type hints
1 parent 0c02c92 commit bf2e659

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

approvaltests/reporters/executable_command_reporter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from typing import Optional
2+
13
import pathlib
24

35
from approval_utilities.approvaltests.core.executable_command import ExecutableCommand
@@ -38,7 +40,7 @@ def execute_result(self, filename) -> str:
3840

3941
@staticmethod
4042
def execute_command_and_format_result(
41-
my_command: str, executor: ExecutableCommand
43+
my_command: Optional[str], executor: ExecutableCommand
4244
) -> str:
4345
if not my_command:
4446
return ""

mypy.ini

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ disable_error_code = abstract
2323
[mypy-approvaltests.file_approver]
2424
disable_error_code = var-annotated, no-any-return
2525

26-
[mypy-approvaltests.reporters.executable_command_reporter]
27-
disable_error_code = arg-type
28-
2926
[mypy-approvaltests.reporters.default_reporter_factory]
3027
disable_error_code = no-any-return
3128

0 commit comments

Comments
 (0)