@@ -38,7 +38,7 @@ def create_item(
38
38
collection_id : str ,
39
39
item : Union [Item , ItemCollection ],
40
40
** kwargs ,
41
- ) -> Optional [Union [Item , Response , None ]]:
41
+ ) -> Optional [Union [stac . Item , Response , None ]]:
42
42
"""Create a new item.
43
43
44
44
Called with `POST /collections/{collection_id}/items`.
@@ -55,7 +55,7 @@ def create_item(
55
55
@abc .abstractmethod
56
56
def update_item (
57
57
self , collection_id : str , item_id : str , item : Item , ** kwargs
58
- ) -> Optional [Union [Item , Response ]]:
58
+ ) -> Optional [Union [stac . Item , Response ]]:
59
59
"""Perform a complete update on an existing item.
60
60
61
61
Called with `PUT /collections/{collection_id}/items`. It is expected
@@ -75,7 +75,7 @@ def update_item(
75
75
@abc .abstractmethod
76
76
def delete_item (
77
77
self , item_id : str , collection_id : str , ** kwargs
78
- ) -> Optional [Union [Item , Response ]]:
78
+ ) -> Optional [Union [stac . Item , Response ]]:
79
79
"""Delete an item from a collection.
80
80
81
81
Called with `DELETE /collections/{collection_id}/items/{item_id}`
@@ -92,7 +92,7 @@ def delete_item(
92
92
@abc .abstractmethod
93
93
def create_collection (
94
94
self , collection : Collection , ** kwargs
95
- ) -> Optional [Union [Collection , Response ]]:
95
+ ) -> Optional [Union [stac . Collection , Response ]]:
96
96
"""Create a new collection.
97
97
98
98
Called with `POST /collections`.
@@ -108,7 +108,7 @@ def create_collection(
108
108
@abc .abstractmethod
109
109
def update_collection (
110
110
self , collection_id : str , collection : Collection , ** kwargs
111
- ) -> Optional [Union [Collection , Response ]]:
111
+ ) -> Optional [Union [stac . Collection , Response ]]:
112
112
"""Perform a complete update on an existing collection.
113
113
114
114
Called with `PUT /collections/{collection_id}`. It is expected that this
@@ -128,7 +128,7 @@ def update_collection(
128
128
@abc .abstractmethod
129
129
def delete_collection (
130
130
self , collection_id : str , ** kwargs
131
- ) -> Optional [Union [Collection , Response ]]:
131
+ ) -> Optional [Union [stac . Collection , Response ]]:
132
132
"""Delete a collection.
133
133
134
134
Called with `DELETE /collections/{collection_id}`
@@ -152,7 +152,7 @@ async def create_item(
152
152
collection_id : str ,
153
153
item : Union [Item , ItemCollection ],
154
154
** kwargs ,
155
- ) -> Optional [Union [Item , Response , None ]]:
155
+ ) -> Optional [Union [stac . Item , Response , None ]]:
156
156
"""Create a new item.
157
157
158
158
Called with `POST /collections/{collection_id}/items`.
@@ -169,7 +169,7 @@ async def create_item(
169
169
@abc .abstractmethod
170
170
async def update_item (
171
171
self , collection_id : str , item_id : str , item : Item , ** kwargs
172
- ) -> Optional [Union [Item , Response ]]:
172
+ ) -> Optional [Union [stac . Item , Response ]]:
173
173
"""Perform a complete update on an existing item.
174
174
175
175
Called with `PUT /collections/{collection_id}/items`. It is expected
@@ -188,7 +188,7 @@ async def update_item(
188
188
@abc .abstractmethod
189
189
async def delete_item (
190
190
self , item_id : str , collection_id : str , ** kwargs
191
- ) -> Optional [Union [Item , Response ]]:
191
+ ) -> Optional [Union [stac . Item , Response ]]:
192
192
"""Delete an item from a collection.
193
193
194
194
Called with `DELETE /collections/{collection_id}/items/{item_id}`
@@ -205,7 +205,7 @@ async def delete_item(
205
205
@abc .abstractmethod
206
206
async def create_collection (
207
207
self , collection : Collection , ** kwargs
208
- ) -> Optional [Union [Collection , Response ]]:
208
+ ) -> Optional [Union [stac . Collection , Response ]]:
209
209
"""Create a new collection.
210
210
211
211
Called with `POST /collections`.
@@ -221,7 +221,7 @@ async def create_collection(
221
221
@abc .abstractmethod
222
222
async def update_collection (
223
223
self , collection_id : str , collection : Collection , ** kwargs
224
- ) -> Optional [Union [Collection , Response ]]:
224
+ ) -> Optional [Union [stac . Collection , Response ]]:
225
225
"""Perform a complete update on an existing collection.
226
226
227
227
Called with `PUT /collections/{collection_id}`. It is expected that this item
@@ -241,7 +241,7 @@ async def update_collection(
241
241
@abc .abstractmethod
242
242
async def delete_collection (
243
243
self , collection_id : str , ** kwargs
244
- ) -> Optional [Union [Collection , Response ]]:
244
+ ) -> Optional [Union [stac . Collection , Response ]]:
245
245
"""Delete a collection.
246
246
247
247
Called with `DELETE /collections/{collection_id}`
0 commit comments