stac-fastapi.api 6.1.1__tar.gz → 6.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stac-fastapi-api
3
- Version: 6.1.1
3
+ Version: 6.1.2
4
4
  Summary: An implementation of STAC API based on the FastAPI framework.
5
5
  Project-URL: Homepage, https://github.com/stac-utils/stac-fastapi
6
6
  Author-email: ArturoAI <engineering@arturo.ai>
@@ -33,7 +33,7 @@ def create_request_model(
33
33
  extensions: Optional[List[ApiExtension]] = None,
34
34
  mixins: Optional[Union[List[Type[BaseModel]], List[Type[APIRequest]]]] = None,
35
35
  request_type: Optional[str] = "GET",
36
- ) -> Union[Type[BaseModel], APIRequest]:
36
+ ) -> Union[Type[BaseModel], Type[APIRequest]]:
37
37
  """Create a pydantic model for validating request bodies."""
38
38
  fields = {}
39
39
  extension_models = []
@@ -65,7 +65,7 @@ def create_request_model(
65
65
  def create_get_request_model(
66
66
  extensions: Optional[List[ApiExtension]],
67
67
  base_model: BaseSearchGetRequest = BaseSearchGetRequest,
68
- ) -> APIRequest:
68
+ ) -> Type[APIRequest]:
69
69
  """Wrap create_request_model to create the GET request model."""
70
70
 
71
71
  return create_request_model(
@@ -1,3 +1,3 @@
1
1
  """Library version."""
2
2
 
3
- __version__ = "6.1.1"
3
+ __version__ = "6.1.2"