File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 "MonitorServiceToken" ,
66 "AggregateFunction" ,
77]
8- from dataclasses import dataclass
8+ from dataclasses import dataclass , field
99from typing import List , Optional
1010
1111from linode_api4 .objects .base import Base , Property
@@ -123,8 +123,8 @@ class DashboardWidget(JSONObject):
123123 chart_type : ChartType = ""
124124 y_label : str = ""
125125 aggregate_function : AggregateFunction = ""
126- group_by : Optional [ List [str ]] = None
127- filters : Optional [ List [Filter ]] = None
126+ group_by : List [str ] = field ( default_factory = list )
127+ filters : List [Filter ] = field ( default_factory = list )
128128
129129
130130@dataclass
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ def test_get_region(self):
2727 region .placement_group_limits .maximum_linodes_per_pg , 5
2828 )
2929
30-
3130 # Test monitors section
3231 self .assertIsNotNone (region .monitors )
3332 self .assertEqual (region .monitors .alerts , ["Managed Databases" ])
@@ -36,7 +35,6 @@ def test_get_region(self):
3635 self .assertIsNotNone (region .capabilities )
3736 self .assertIn ("Linode Interfaces" , region .capabilities )
3837
39-
4038 def test_region_availability (self ):
4139 """
4240 Tests that availability for a specific region can be listed and filtered on.
You can’t perform that action at this time.
0 commit comments