1
0
mirror of synced 2024-12-22 04:39:58 +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
@functools.lru_cache
@functools.lru_cache(maxsize=None)
def _get_bwrap_path() -> str:
which_path = shutil.which('bwrap')
if which_path:

View File

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