mirror of
https://github.com/modelscope/FunASR.git
synced 2026-10-12 02:19:18 +00:00
Using a mutable dict as a default argument is a classic Python pitfall
where all calls without an explicit cache share the same dict object,
causing state leakage between invocations.
Changed all 34 occurrences of 'cache: dict = {}' to 'cache: dict = None'
with 'if cache is None: cache = {}' guard in the function body.