diff options
| author | Dennis Fink | 2025-03-05 08:23:50 +0100 |
|---|---|---|
| committer | Dennis Fink | 2025-03-05 08:23:50 +0100 |
| commit | 2f6dddf66e028121c18ac02fe78131982f3e3712 (patch) | |
| tree | 0c4a10d58982c69f52c87ce5d608afe0572ef92d | |
| parent | 3b28310412b7d8e38a91c81351e6b2ee61065fda (diff) | |
| download | patternutils-2f6dddf66e028121c18ac02fe78131982f3e3712.tar.gz patternutils-2f6dddf66e028121c18ac02fe78131982f3e3712.zip | |
Fix some typing
| -rw-r--r-- | patternutils/commands/pmediainfo.py | 2 | ||||
| -rw-r--r-- | patternutils/commands/targs.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/patternutils/commands/pmediainfo.py b/patternutils/commands/pmediainfo.py index 0fa7b18..d22bce3 100644 --- a/patternutils/commands/pmediainfo.py +++ b/patternutils/commands/pmediainfo.py @@ -4,7 +4,7 @@ import os.path from typing import Any, Generator, Iterator, Optional import click -from pymediainfo import MediaInfo +from pymediainfo import MediaInfo # type: ignore from .. import config from .. import match as mat diff --git a/patternutils/commands/targs.py b/patternutils/commands/targs.py index a88bd71..2df7968 100644 --- a/patternutils/commands/targs.py +++ b/patternutils/commands/targs.py @@ -13,7 +13,7 @@ from .. import config, template, utils def run_command( command: str, - run: Callable[..., None], + run: functools.partial[subprocess.CompletedProcess[str]] | Callable[..., None], shell: bool, ) -> None: run(shlex.split(command) if not shell else command) |
