feat: add Python type hinting and annotations #78
GitHub Actions / Black
failed
Dec 25, 2024 in 0s
1 error
Black found 1 error
Annotations
Check failure on line 274 in /home/runner/work/HadCRUT5/HadCRUT5/hadcrut5lib.py
github-actions / Black
/home/runner/work/HadCRUT5/HadCRUT5/hadcrut5lib.py#L263-L274
@property
def dataset_period(self) -> str:
"""Return the dataset period as a string"""
return self._period
- def dataset_years(self) -> List[int|float]:
+ def dataset_years(self) -> List[int | float]:
"""
Return an array of years corresponding of the loaded datasets.
If the original dataset packages monthly data, the returning vector
will contain float values (year plus a decimal part for the month).
"""
Loading