Skip to content

Commit e5a263a

Browse files
committed
fix: mypy errors
1 parent fe45ff7 commit e5a263a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/parser/src/extending_built_in_models_with_json_mypy.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ class CancelOrder(BaseModel):
1111

1212

1313
class CancelOrderModel(APIGatewayProxyEventV2Model):
14-
body: Json[CancelOrder] # type: ignore[type-arg]
14+
body: Json[CancelOrder] # type: ignore[assignment]
1515

1616

1717
@event_parser(model=CancelOrderModel)
1818
def handler(event: CancelOrderModel, context: LambdaContext):
19-
cancel_order: CancelOrder = event.body # type: ignore[assignment]
19+
cancel_order: CancelOrder = event.body
2020

2121
assert cancel_order.order_id is not None

0 commit comments

Comments
 (0)