Skip to content

Commit e4f7267

Browse files
committed
fix typing for ruff
1 parent fdb3185 commit e4f7267

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/meteole/forecast.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from abc import ABC, abstractmethod
1010
from functools import reduce
1111
from importlib.util import find_spec
12-
from typing import Any, Optional
12+
from typing import Any
1313

1414
import pandas as pd
1515
import xarray as xr
@@ -127,7 +127,7 @@ def get_capabilities(self) -> pd.DataFrame:
127127
return self.capabilities
128128

129129
def get_coverage_description(
130-
self, coverage_id: str, ensemble_numbers: list[Optional[int]] | None = None
130+
self, coverage_id: str, ensemble_numbers: list[int | None] | None = None
131131
) -> dict[str, Any]:
132132
"""Return the available axis (times, heights) of a coverage.
133133
@@ -140,7 +140,7 @@ def get_coverage_description(
140140
Returns:
141141
A dictionary containing more info on the coverage.
142142
"""
143-
numbers_to_fetch: list[Optional[int]]
143+
numbers_to_fetch: list[int | None]
144144

145145
if self.MODEL_TYPE == "ENSEMBLE":
146146
if ensemble_numbers is None:

0 commit comments

Comments
 (0)