Skip to content

Commit a0267df

Browse files
committed
rework: single entrypoint
1 parent 41f04ed commit a0267df

File tree

3 files changed

+338
-249
lines changed

3 files changed

+338
-249
lines changed

pystac/extensions/ext.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from pystac.extensions.sar import SarExtension
3232
from pystac.extensions.sat import SatExtension
3333
from pystac.extensions.scientific import ScientificExtension
34-
from pystac.extensions.storage import StorageRefsExtension, StorageSchemesExtension
34+
from pystac.extensions.storage import StorageExtension
3535
from pystac.extensions.table import TableExtension
3636
from pystac.extensions.timestamps import TimestampsExtension
3737
from pystac.extensions.version import BaseVersionExtension, VersionExtension
@@ -85,7 +85,7 @@
8585
SarExtension.name: SarExtension,
8686
SatExtension.name: SatExtension,
8787
ScientificExtension.name: ScientificExtension,
88-
StorageSchemesExtension.name: StorageSchemesExtension,
88+
StorageExtension.name: StorageExtension,
8989
TableExtension.name: TableExtension,
9090
TimestampsExtension.name: TimestampsExtension,
9191
VersionExtension.name: VersionExtension,
@@ -173,8 +173,8 @@ def sci(self) -> ScientificExtension[Collection]:
173173
return ScientificExtension.ext(self.stac_object)
174174

175175
@property
176-
def storage(self) -> StorageSchemesExtension[Collection]:
177-
return StorageSchemesExtension.ext(self.stac_object)
176+
def storage(self) -> StorageExtension[Collection]:
177+
return StorageExtension.ext(self.stac_object)
178178

179179
@property
180180
def table(self) -> TableExtension[Collection]:
@@ -269,8 +269,8 @@ def sci(self) -> ScientificExtension[Item]:
269269
return ScientificExtension.ext(self.stac_object)
270270

271271
@property
272-
def storage(self) -> StorageSchemesExtension[Item]:
273-
return StorageSchemesExtension.ext(self.stac_object)
272+
def storage(self) -> StorageExtension[Item]:
273+
return StorageExtension.ext(self.stac_object)
274274

275275
@property
276276
def table(self) -> TableExtension[Item]:
@@ -380,8 +380,8 @@ def sat(self) -> SatExtension[U]:
380380
return SatExtension.ext(self.stac_object)
381381

382382
@property
383-
def storage(self) -> StorageRefsExtension[U]:
384-
return StorageRefsExtension.ext(self.stac_object)
383+
def storage(self) -> StorageExtension[U]:
384+
return StorageExtension.ext(self.stac_object)
385385

386386
@property
387387
def table(self) -> TableExtension[U]:
@@ -437,8 +437,8 @@ def mlm(self) -> MLMExtension[ItemAssetDefinition]:
437437
return MLMExtension.ext(self.stac_object)
438438

439439
@property
440-
def storage(self) -> StorageRefsExtension[ItemAssetDefinition]:
441-
return StorageRefsExtension.ext(self.stac_object)
440+
def storage(self) -> StorageExtension[ItemAssetDefinition]:
441+
return StorageExtension.ext(self.stac_object)
442442

443443

444444
@dataclass
@@ -454,5 +454,5 @@ def file(self) -> FileExtension[Link]:
454454
return FileExtension.ext(self.stac_object)
455455

456456
@property
457-
def storage(self) -> StorageRefsExtension[Link]:
458-
return StorageRefsExtension.ext(self.stac_object)
457+
def storage(self) -> StorageExtension[Link]:
458+
return StorageExtension.ext(self.stac_object)

0 commit comments

Comments
 (0)