File tree Expand file tree Collapse file tree 6 files changed +13
-17
lines changed
Expand file tree Collapse file tree 6 files changed +13
-17
lines changed Original file line number Diff line number Diff line change 11from abc import ABC , abstractmethod
22from concurrent .futures import ThreadPoolExecutor
33from datetime import date
4- from typing import List
54
65from typing_extensions import Self
76
@@ -27,7 +26,7 @@ def list(
2726 * ,
2827 client : http .Client | None = None ,
2928 max_workers : int = MAX_WORKERS ,
30- ) -> List [Self ]:
29+ ) -> list [Self ]:
3130 client = client or http .client
3231 end = format_end_date (end )
3332
Original file line number Diff line number Diff line change 11from datetime import date , datetime
2- from typing import List
32
43from pydantic .dataclasses import dataclass
54from typing_extensions import Self
@@ -40,7 +39,7 @@ class HRVReading:
4039class HRVData (Data ):
4140 user_profile_pk : int
4241 hrv_summary : HRVSummary
43- hrv_readings : List [HRVReading ]
42+ hrv_readings : list [HRVReading ]
4443 start_timestamp_gmt : datetime
4544 end_timestamp_gmt : datetime
4645 start_timestamp_local : datetime
Original file line number Diff line number Diff line change 11from datetime import date , datetime , timedelta , timezone
2- from typing import List , Optional , Union
2+ from typing import Optional , Union
33
44from pydantic .dataclasses import dataclass
55from typing_extensions import Self
@@ -102,7 +102,7 @@ class SleepMovement:
102102@dataclass
103103class SleepData (Data ):
104104 daily_sleep_dto : DailySleepDTO
105- sleep_movement : Optional [List [SleepMovement ]] = None
105+ sleep_movement : Optional [list [SleepMovement ]] = None
106106
107107 @classmethod
108108 def get (
@@ -126,6 +126,6 @@ def get(
126126 )
127127
128128 @classmethod
129- def list (cls , * args , ** kwargs ) -> List [Self ]:
129+ def list (cls , * args , ** kwargs ) -> list [Self ]:
130130 data = super ().list (* args , ** kwargs )
131131 return sorted (data , key = lambda x : x .daily_sleep_dto .calendar_date )
Original file line number Diff line number Diff line change 11from datetime import date , timedelta
2- from typing import ClassVar , List
2+ from typing import ClassVar
33
44from pydantic .dataclasses import dataclass
55from typing_extensions import Self
@@ -22,7 +22,7 @@ def list(
2222 period : int = 1 ,
2323 * ,
2424 client : http .Client | None = None ,
25- ) -> List [Self ]:
25+ ) -> list [Self ]:
2626 client = client or http .client
2727 end = format_end_date (end )
2828 period_type = "days" if "daily" in cls ._path else "weeks"
Original file line number Diff line number Diff line change 1- from typing import List
2-
31from pydantic .dataclasses import dataclass
42from typing_extensions import Self
53
@@ -26,10 +24,10 @@ class UserProfile:
2624 motivation : str | None
2725 bio : str | None
2826 primary_activity : str | None
29- favorite_activity_types : List [str ]
27+ favorite_activity_types : list [str ]
3028 running_training_speed : float
3129 cycling_training_speed : float
32- favorite_cycling_activity_types : List [str ]
30+ favorite_cycling_activity_types : list [str ]
3331 cycling_classification : str | None
3432 cycling_max_avg_power : float
3533 swimming_training_speed : float
@@ -59,7 +57,7 @@ class UserProfile:
5957 other_activity : str | None
6058 other_primary_activity : str | None
6159 other_motivation : str | None
62- user_roles : List [str ]
60+ user_roles : list [str ]
6361 name_approved : bool
6462 user_profile_full_name : str
6563 make_golf_scorecards_private : bool
Original file line number Diff line number Diff line change 11from datetime import date
2- from typing import Dict , List
2+ from typing import Dict
33
44from pydantic .dataclasses import dataclass
55from typing_extensions import Self
@@ -58,7 +58,7 @@ class UserData:
5858 moderate_intensity_minutes_hr_zone : int
5959 vigorous_intensity_minutes_hr_zone : int
6060 hydration_measurement_unit : str
61- hydration_containers : List [Dict [str , float | str | None ]]
61+ hydration_containers : list [Dict [str , float | str | None ]]
6262 hydration_auto_goal_enabled : bool
6363 firstbeat_max_stress_score : float | None
6464 firstbeat_cycling_lt_timestamp : int | None
@@ -95,7 +95,7 @@ class UserSettings:
9595 user_sleep : UserSleep
9696 connect_date : str | None
9797 source_type : str | None
98- user_sleep_windows : List [UserSleepWindow ] | None = None
98+ user_sleep_windows : list [UserSleepWindow ] | None = None
9999
100100 @classmethod
101101 def get (cls , / , client : http .Client | None = None ) -> Self :
You can’t perform that action at this time.
0 commit comments