feat: add Python type hinting and annotations #78
ci.yaml
on: push
Run black and pylint tools
21s
Annotations
1 error and 1 warning
/home/runner/work/HadCRUT5/HadCRUT5/hadcrut5lib.py#L263
@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).
"""
|
Run black and pylint tools
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|