Skip to content

Commit 2c96ecf

Browse files
author
Phil Varner
committed
add osb
1 parent 36e700e commit 2c96ecf

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

stapi-fastapi/src/stapi_fastapi/routers/product_router.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
OpportunitySearchRecord,
2626
Order,
2727
OrderPayload,
28-
OrderStatus,
28+
OrderStatusBound,
2929
Prefer,
3030
)
3131
from stapi_pydantic import (
@@ -149,7 +149,7 @@ async def _create_order(
149149
payload: OrderPayload, # type: ignore
150150
request: Request,
151151
response: Response,
152-
) -> Order[OrderStatus]:
152+
) -> Order[OrderStatusBound]:
153153
return await self.create_order(payload, request, response)
154154

155155
_create_order.__annotations__["payload"] = OrderPayload[

stapi-fastapi/src/stapi_fastapi/routers/root_router.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
OpportunitySearchStatus,
1616
Order,
1717
OrderCollection,
18-
OrderStatus,
1918
OrderStatusBound,
2019
OrderStatuses,
2120
ProductsCollection,
@@ -306,7 +305,7 @@ async def get_orders( # noqa: C901
306305
number_matched=orders_count,
307306
)
308307

309-
async def get_order(self, order_id: str, request: Request) -> Order[OrderStatus]:
308+
async def get_order(self, order_id: str, request: Request) -> Order[OrderStatusBound]:
310309
"""
311310
Get details for order with `order_id`.
312311
"""

0 commit comments

Comments
 (0)