Skip to content

Commit 873a8fd

Browse files
author
Jon Duckworth
authored
Merge pull request #527 from l0b0/refactor/join-arithmetic-comparisons
refactor: Join arithmetic comparisons
2 parents a0f79a3 + af5d414 commit 873a8fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pystac/serialization/identify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def latest_valid_version(self) -> STACVersionID:
118118
def contains(self, v: Union[str, STACVersionID]) -> bool:
119119
if isinstance(v, str):
120120
v = STACVersionID(v)
121-
return self.min_version <= v and v <= self.max_version
121+
return self.min_version <= v <= self.max_version
122122

123123
def is_single_version(self) -> bool:
124124
return self.min_version >= self.max_version

0 commit comments

Comments
 (0)