Skip to content

Commit c13b610

Browse files
committed
Use default_factory for empty list default
1 parent 49a8838 commit c13b610

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

brainframe/api/bf_codecs/zone_codecs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Zone(Codec):
2626
Example: [[0, 0], [10, 10], [100, 500], [0, 500]]
2727
"""
2828

29-
alarms: List[ZoneAlarm] = field(default=list)
29+
alarms: List[ZoneAlarm] = field(default_factory=list)
3030
"""All alarms that are attached to the zone"""
3131

3232
id: Optional[int] = None

0 commit comments

Comments
 (0)