You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,10 @@
6
6
7
7
- Fix handling of optional properties when using apply on view extension ([#259](https://github.com/stac-utils/pystac/pull/259))
8
8
9
+
### Changed
10
+
11
+
- Subclass relevant classes from `enum.Enum`. This allows iterating over the class' contents. The `__str__` method is overwritten so this should not break backwards compatibility. ([#261](https://github.com/stac-utils/pystac/pull/261))
"""A 'self-contained catalog' is one that is designed for portability.
16
20
Users may want to download a catalog from online and be able to use it on their
@@ -38,8 +42,8 @@ class CatalogType:
38
42
`The best practices documentation on published catalogs <https://github.com/radiantearth/stac-spec/blob/v0.8.1/best-practices.md#published-catalogs>`_
39
43
"""# noqa E501
40
44
41
-
@staticmethod
42
-
defdetermine_type(stac_json):
45
+
@classmethod
46
+
defdetermine_type(cls, stac_json):
43
47
"""Determines the catalog type based on a STAC JSON dict.
0 commit comments