This was a comment left on this PR:
Avoid mutable list literals as defaults; they can be shared between instances depending on the model framework behavior. Prefer a default factory (e.g., using the project’s modeling approach such as a default_factory=list) to ensure a fresh list per instance.
This was a comment left on this PR:
Avoid mutable list literals as defaults; they can be shared between instances depending on the model framework behavior. Prefer a default factory (e.g., using the project’s modeling approach such as a default_factory=list) to ensure a fresh list per instance.