Skip to content

Commit 8818c04

Browse files
authored
Fix type hint formatting for pandas index methods
1 parent 018446b commit 8818c04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nwp_consumer/internal/entities/coordinates.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def coord_system(self) -> dict[str, Any]:
183183
@classmethod
184184
def from_pandas(
185185
cls,
186-
pd_indexes: dict[str, pd.Index], # type: ignore
186+
pd_indexes: dict[str, pd.Index],
187187
) -> ResultE["NWPDimensionCoordinateMap"]:
188188
"""Create a new NWPDimensionCoordinateMap from a dictionary of pandas Index objects.
189189
@@ -351,7 +351,7 @@ def from_xarray(
351351
"""Create a new NWPDimensionCoordinateMap from an XArray DataArray or Dataset object."""
352352
return cls.from_pandas(xarray_obj.coords.indexes) # type: ignore
353353

354-
def to_pandas(self) -> dict[str, pd.Index]: # type: ignore
354+
def to_pandas(self) -> dict[str, pd.Index]:
355355
"""Convert the coordinate map to a dictionary of pandas Index objects.
356356
357357
This is useful for interoperability with xarray, which prefers to define

0 commit comments

Comments
 (0)