Skip to content

SuggestedActions uses a common list as a default value for the to field #367

@rodrigobr-msft

Description

@rodrigobr-msft

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions