Skip to content

Commit 0e86ae0

Browse files
committed
fix: use AnyUrl for comparisons
This worked as-was in pydantic v2.9 but not in v2.10
1 parent ffc5275 commit 0e86ae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: stac_pydantic/api/landing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def required_links(self) -> "LandingPage":
3535
), f"STAC API conform Landing pages must include a `{rel}` link."
3636

3737
if (
38-
HttpUrl(f"https://api.stacspec.org/v{STAC_API_VERSION}/collections")
38+
AnyUrl(f"https://api.stacspec.org/v{STAC_API_VERSION}/collections")
3939
in self.conformsTo
4040
):
4141
required_collections_rels = [Relations.data]

0 commit comments

Comments
 (0)