1
0
mirror of synced 2024-11-22 01:04:23 +01:00

Explicitly pass a parameter to functools.lru_cache

This commit is contained in:
jvoisin 2023-01-31 20:42:39 +01:00
parent 66a36f6b15
commit e41390eb64
3 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ CalledProcessError = subprocess.CalledProcessError
# pylint: disable=subprocess-run-check # pylint: disable=subprocess-run-check
@functools.lru_cache @functools.lru_cache(maxsize=None)
def _get_bwrap_path() -> str: def _get_bwrap_path() -> str:
which_path = shutil.which('bwrap') which_path = shutil.which('bwrap')
if which_path: if which_path:

View File

@ -67,7 +67,7 @@ class ExiftoolParser(abstract.AbstractParser):
return False return False
return True return True
@functools.lru_cache @functools.lru_cache(maxsize=None)
def _get_exiftool_path() -> str: # pragma: no cover def _get_exiftool_path() -> str: # pragma: no cover
which_path = shutil.which('exiftool') which_path = shutil.which('exiftool')
if which_path: if which_path:

View File

@ -135,7 +135,7 @@ class MP4Parser(AbstractFFmpegParser):
} }
@functools.lru_cache() @functools.lru_cache(maxsize=None)
def _get_ffmpeg_path() -> str: # pragma: no cover def _get_ffmpeg_path() -> str: # pragma: no cover
which_path = shutil.which('ffmpeg') which_path = shutil.which('ffmpeg')
if which_path: if which_path: