remove type: ignore for newest python

This commit is contained in:
Evgenii Alekseev 2021-06-28 02:32:54 +03:00
parent 3e020ec141
commit c90e20587e

View File

@ -41,7 +41,7 @@ def check_output(*args: str, exception: Optional[Exception], cwd: Optional[Path]
""" """
try: try:
# universal_newlines is required to read input from string # universal_newlines is required to read input from string
result: str = subprocess.check_output(args, cwd=cwd, input=input_data, stderr=subprocess.STDOUT, # type: ignore result: str = subprocess.check_output(args, cwd=cwd, input=input_data, stderr=subprocess.STDOUT,
universal_newlines=True).strip() universal_newlines=True).strip()
if logger is not None: if logger is not None:
for line in result.splitlines(): for line in result.splitlines():