3333
3434@dataclass
3535class WebLink :
36- """
37- represents a web link
36+ """represents a web link
3837 """
3938
4039 alt : str
@@ -43,8 +42,7 @@ class WebLink:
4342
4443@dataclass
4544class DataSignalGeoStatistics :
46- """
47- COVIDcast signal statistics
45+ """COVIDcast signal statistics
4846 """
4947
5048 min : float
@@ -64,7 +62,11 @@ def define_covidcast_fields() -> List[EpidataFieldInfo]:
6462 EpidataFieldInfo ("signal" , EpidataFieldType .text ),
6563 EpidataFieldInfo ("geo_type" , EpidataFieldType .categorical , categories = list (get_args (GeoType ))),
6664 EpidataFieldInfo ("geo_value" , EpidataFieldType .text ),
67- EpidataFieldInfo ("time_type" , EpidataFieldType .categorical , categories = list (get_args (TimeType ))),
65+ EpidataFieldInfo (
66+ "time_type" ,
67+ EpidataFieldType .categorical ,
68+ categories = list (get_args (TimeType )),
69+ ),
6870 EpidataFieldInfo ("time_value" , EpidataFieldType .date_or_epiweek ),
6971 EpidataFieldInfo ("issue" , EpidataFieldType .date ),
7072 EpidataFieldInfo ("lag" , EpidataFieldType .int ),
@@ -80,8 +82,7 @@ def define_covidcast_fields() -> List[EpidataFieldInfo]:
8082
8183@dataclass
8284class DataSignal (Generic [CALL_TYPE ]):
83- """
84- represents a COVIDcast data signal
85+ """represents a COVIDcast data signal
8586 """
8687
8788 _create_call : Callable [[Mapping [str , Optional [EpiRangeParam ]]], CALL_TYPE ]
@@ -160,7 +161,7 @@ def call(
160161 lag : Optional [int ] = None ,
161162 ) -> CALL_TYPE :
162163 """Fetch Delphi's COVID-19 Surveillance Streams"""
163- if any (( v is None for v in (geo_type , geo_values , time_values ) )):
164+ if any (v is None for v in (geo_type , geo_values , time_values )):
164165 raise InvalidArgumentException ("`geo_type`, `time_values`, and `geo_values` are all required" )
165166 if issues is not None and lag is not None :
166167 raise InvalidArgumentException ("`issues` and `lag` are mutually exclusive" )
@@ -194,8 +195,7 @@ def __call__(
194195
195196@dataclass
196197class DataSource (Generic [CALL_TYPE ]):
197- """
198- represents a COVIDcast data source
198+ """represents a COVIDcast data source
199199 """
200200
201201 _create_call : InitVar [Callable [[Mapping [str , Optional [EpiRangeParam ]]], CALL_TYPE ]]
@@ -247,8 +247,7 @@ def signal_df(self) -> DataFrame:
247247
248248@dataclass
249249class CovidcastDataSources (Generic [CALL_TYPE ]):
250- """
251- COVIDcast data source helper.
250+ """COVIDcast data source helper.
252251 """
253252
254253 sources : Sequence [DataSource [CALL_TYPE ]]
0 commit comments