Skip to content

Commit f055d72

Browse files
[titiler.xarray] update type informations for reader and path_dependencies (#1155)
1 parent e733562 commit f055d72

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release Notes
22

3+
## 0.22.1 (2025-05-13)
4+
5+
### titiler.xarray
6+
7+
* update `reader` and `path_dependency` type informations
8+
39
## 0.22.0 (2025-05-06)
410

511
### Misc

src/titiler/xarray/titiler/xarray/factory.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
"""TiTiler.xarray factory."""
22

3-
from typing import Callable, Optional, Type, Union
3+
from typing import Any, Callable, Optional, Type, Union
44

55
import rasterio
66
from attrs import define, field
77
from fastapi import Body, Depends, Query
88
from geojson_pydantic.features import Feature, FeatureCollection
99
from rio_tiler.constants import WGS84_CRS
10+
from rio_tiler.io import XarrayReader
1011
from rio_tiler.models import Info
1112
from typing_extensions import Annotated
1213

@@ -32,9 +33,9 @@
3233
class TilerFactory(BaseTilerFactory):
3334
"""Xarray Tiler Factory."""
3435

35-
reader: Type[Reader] = Reader
36+
reader: Type[XarrayReader] = Reader
3637

37-
path_dependency: Callable[..., str] = DatasetPathParams
38+
path_dependency: Callable[..., Any] = DatasetPathParams
3839

3940
reader_dependency: Type[DefaultDependency] = XarrayParams
4041

0 commit comments

Comments
 (0)