Skip to content

Commit 62cf93a

Browse files
Copilotmrm9084
andauthored
Fix mutable default in targeting context
Co-authored-by: mrm9084 <1054559+mrm9084@users.noreply.github.com>
1 parent 800e4fa commit 62cf93a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎featuremanagement/_models/_targeting_context.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# --------------------------------------------------------------------------
66
"""Targeting context model for user and group targeting."""
77

8-
from typing import NamedTuple, List
8+
from typing import NamedTuple, Sequence
99

1010

1111
class TargetingContext(NamedTuple):
@@ -20,9 +20,9 @@ class TargetingContext(NamedTuple):
2020
:type: str
2121
"""
2222

23-
groups: List[str] = []
23+
groups: Sequence[str] = ()
2424
"""
2525
The users groups.
2626
27-
:type: List[str]
27+
:type: Sequence[str]
2828
"""

0 commit comments

Comments
 (0)