bugfix: prune_choices was ignored if cache_dir was given
this is why mypy was failing since commit
makes test implemented in commit pass
@@ -76,6 +76,7 @@ def _load_file_cache(filename: StringPathLike,
database_format: Optional[str],
encoding: Optional[str],
frame_id_mask: Optional[int],
+ prune_choices: bool,
strict: bool,
cache_dir: str,
sort_signals: utils.type_sort_signals,
@@ -92,6 +93,7 @@ def _load_file_cache(filename: StringPathLike,
database = load(cast(TextIO, fin),
database_format,
frame_id_mask,
+ prune_choices,
strict,
sort_signals)
cache[key] = database
@@ -199,6 +201,7 @@ def load_file(filename: StringPathLike,
database_format,
encoding,
frame_id_mask,
+ prune_choices,
strict,
cache_dir,
sort_signals)
