Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
remicres committed Dec 15, 2024
1 parent 97f87cb commit 9d61c86
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pystac/extensions/classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,10 @@ def apply(
or bitfields is None
and classes is not None
), "Must set exactly one of `classes` or `bitfields`"
self.classes = classes
self.bitfields = bitfields
if classes:
self.classes = classes
if bitfields:
self.bitfields = bitfields

@property
def classes(self) -> list[Classification] | None:
Expand Down

0 comments on commit 9d61c86

Please sign in to comment.