Skip to content

Commit 6e27662

Browse files
committed
reorder
1 parent ea54573 commit 6e27662

File tree

1 file changed

+10
-10
lines changed
  • stac_fastapi/types/stac_fastapi/types

1 file changed

+10
-10
lines changed

stac_fastapi/types/stac_fastapi/types/search.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,6 @@ def _validate_datetime(instance, attribute, value):
9393
Limit = Annotated[PositiveInt, AfterValidator(crop)]
9494

9595

96-
@attr.s
97-
class APIRequest:
98-
"""Generic API Request base class."""
99-
100-
def kwargs(self) -> Dict:
101-
"""Transform api request params into format which matches the signature of the
102-
endpoint."""
103-
return self.__dict__
104-
105-
10696
DateTimeQueryType = Annotated[
10797
Optional[str],
10898
Query(
@@ -118,6 +108,16 @@ def kwargs(self) -> Dict:
118108
]
119109

120110

111+
@attr.s
112+
class APIRequest:
113+
"""Generic API Request base class."""
114+
115+
def kwargs(self) -> Dict:
116+
"""Transform api request params into format which matches the signature of the
117+
endpoint."""
118+
return self.__dict__
119+
120+
121121
@attr.s
122122
class DatetimeMixin:
123123
"""Datetime Mixin."""

0 commit comments

Comments
 (0)