mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 07:17:17 +00:00
remove type: ignore for newest python
This commit is contained in:
parent
33cfa8fef8
commit
69b319d39a
@ -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():
|
||||||
|
Loading…
Reference in New Issue
Block a user