Skip to content

Commit 5333806

Browse files
Fix import for latest stac_pydantic version (#844)
* Fix import for latest stac_pydantic version * Pin to stac_pydantic>=3.3.0
1 parent b31ebac commit 5333806

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
- add `py.typed` to package distributions ([#842](https://github.com/stac-utils/stac-fastapi/pull/842))
1212
- update/fix type informations ([#842](https://github.com/stac-utils/stac-fastapi/pull/842))
13+
- pin `stac_pydantic` to `>=3.3.0` for the correct import path of `stac_pydantic.shared.SearchDatetime` ([#844](https://github.com/stac-utils/stac-fastapi/pull/844))
1314

1415
## [5.2.1] - 2025-04-18
1516

stac_fastapi/extensions/stac_fastapi/extensions/core/collection_search/request.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
import attr
77
from fastapi import Query
88
from pydantic import BaseModel, Field, PrivateAttr, ValidationInfo, field_validator
9-
from stac_pydantic.api.search import SearchDatetime
10-
from stac_pydantic.shared import BBox
9+
from stac_pydantic.shared import BBox, SearchDatetime
1110
from typing_extensions import Annotated
1211

1312
from stac_fastapi.types.search import (

stac_fastapi/types/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"fastapi>=0.109.0",
1010
"attrs>=23.2.0",
1111
"pydantic-settings>=2",
12-
"stac_pydantic>=3.1.3,<4.0",
12+
"stac_pydantic>=3.3.0,<4.0",
1313
"iso8601>=1.0.2,<2.2.0",
1414
]
1515

0 commit comments

Comments
 (0)