@@ -83,31 +83,31 @@ class Status:
8383@dataclass
8484class RootObject :
8585 page = Page
86- components = List [Components]
87- incidents = List [Any]
88- scheduled_maintenances = List [Any]
86+ components = list [Components]
87+ incidents = list [Any]
88+ scheduled_maintenances = list [Any]
8989 status = Status
9090```
9191
9292Or:
9393
9494``` python
95- from typing import TypedDict, Optional, List
95+ from typing import TypedDict, Optional
9696
9797from datetime import datetime
9898
9999
100100IncidentUpdate = TypedDict(" IncidentUpdate" , {" body" : str , " created_at" : datetime, " display_at" : datetime, " id" : str , " incident_id" : str , " status" : str , " updated_at" : datetime})
101101
102- IncidentOrScheduledMaintenance = TypedDict(" IncidentOrScheduledMaintenance" , {" created_at" : datetime, " id" : str , " impact" : str , " incident_updates" : List [IncidentUpdate], " monitoring_at" : None , " name" : str , " page_id" : str , " resolved_at" : None , " shortlink" : str , " status" : str , " updated_at" : datetime, " scheduled_for" : Optional[datetime], " scheduled_until" : Optional[datetime]})
102+ IncidentOrScheduledMaintenance = TypedDict(" IncidentOrScheduledMaintenance" , {" created_at" : datetime, " id" : str , " impact" : str , " incident_updates" : list [IncidentUpdate], " monitoring_at" : None , " name" : str , " page_id" : str , " resolved_at" : None , " shortlink" : str , " status" : str , " updated_at" : datetime, " scheduled_for" : Optional[datetime], " scheduled_until" : Optional[datetime]})
103103
104104Component = TypedDict(" Component" , {" created_at" : datetime, " description" : None , " id" : str , " name" : str , " page_id" : str , " position" : int , " status" : str , " updated_at" : datetime})
105105
106106Status = TypedDict(" Status" , {" description" : str , " indicator" : str })
107107
108108Page = TypedDict(" Page" , {" id" : str , " name" : str , " url" : str , " updated_at" : datetime})
109109
110- RootObject = TypedDict(" UnnammedType3C2BC8" , {" page" : Page, " status" : Status, " components" : List [Component], " incidents" : List [IncidentOrScheduledMaintenance], " scheduled_maintenances" : List [IncidentOrScheduledMaintenance]})
110+ RootObject = TypedDict(" UnnammedType3C2BC8" , {" page" : Page, " status" : Status, " components" : list [Component], " incidents" : list [IncidentOrScheduledMaintenance], " scheduled_maintenances" : list [IncidentOrScheduledMaintenance]})
111111```
112112
113113## TODO
0 commit comments