What it flags
A default list, dictionary or set is allocated when Python defines the function. A direct mutation in the function body updates the same object for later calls that omit the argument. Use per-call initialization where appropriate. Review whether shared caching is intentional and preserve distinct behavior for an explicit None argument. A parameter named as a deliberate cache is not reported:memo, _memo, cache, _cache, or a name starting with memo_ or ending in _cache, as in def fib(n, memo={}). Other names, such as seen or visited, are still reported.