|
10 | 10 | ) |
11 | 11 |
|
12 | 12 | GetOrders = Callable[ |
13 | | - [Request, str | None, int], |
| 13 | + [str | None, int, Request], |
14 | 14 | Coroutine[Any, Any, ResultE[tuple[list[Order], Maybe[str]]]], |
15 | 15 | ] |
16 | 16 | """ |
17 | 17 | Type alias for an async function that returns a list of existing Orders. |
18 | 18 |
|
19 | 19 | Args: |
20 | | - request (Request): FastAPI's Request object. |
21 | 20 | next (str | None): A pagination token. |
22 | 21 | limit (int): The maximum number of orders to return in a page. |
| 22 | + request (Request): FastAPI's Request object. |
23 | 23 |
|
24 | 24 | Returns: |
25 | 25 | A tuple containing a list of orders and a pagination token. |
|
49 | 49 |
|
50 | 50 |
|
51 | 51 | GetOrderStatuses = Callable[ |
52 | | - [str, Request, str | None, int], |
| 52 | + [str, str | None, int, Request], |
53 | 53 | Coroutine[Any, Any, ResultE[tuple[list[T], Maybe[str]]]], |
54 | 54 | ] |
55 | 55 | """ |
56 | 56 | Type alias for an async function that gets statuses for the order with `order_id`. |
57 | 57 |
|
58 | 58 | Args: |
59 | 59 | order_id (str): The order ID. |
60 | | - request (Request): FastAPI's Request object. |
61 | 60 | next (str | None): A pagination token. |
62 | 61 | limit (int): The maximum number of statuses to return in a page. |
| 62 | + request (Request): FastAPI's Request object. |
63 | 63 |
|
64 | 64 | Returns: |
65 | 65 | A tuple containing a list of order statuses and a pagination token. |
|
0 commit comments