@@ -668,7 +668,7 @@ def from_route_arn(
668668
669669 # Note: we need ignore[override] because we are removing the http_method field
670670 @override
671- def _add_route (self , effect : str , resource : str , conditions : list [dict ] | None = None ): # type: ignore[override]
671+ def _add_route (self , effect : str , resource : str , conditions : list [dict ] | None = None ): # type: ignore[override] # ty: ignore[invalid-method-override]
672672 """Adds a route to the internal lists of allowed or denied routes. Each object in
673673 the internal list contains a resource ARN and a condition statement. The condition
674674 statement can be null."""
@@ -703,7 +703,7 @@ def deny_all_routes(self, http_method: str = HttpVerb.ALL.value): # type: ignor
703703
704704 # Note: we need ignore[override] because we are removing the http_method field
705705 @override
706- def allow_route (self , resource : str , conditions : list [dict ] | None = None ): # type: ignore[override]
706+ def allow_route (self , resource : str , conditions : list [dict ] | None = None ): # type: ignore[override] # ty: ignore[invalid-method-override]
707707 """
708708 Add an API Gateway Websocket method to the list of allowed methods for the policy.
709709
@@ -732,7 +732,7 @@ def allow_route(self, resource: str, conditions: list[dict] | None = None): # t
732732
733733 # Note: we need ignore[override] because we are removing the http_method field
734734 @override
735- def deny_route (self , resource : str , conditions : list [dict ] | None = None ): # type: ignore[override]
735+ def deny_route (self , resource : str , conditions : list [dict ] | None = None ): # type: ignore[override] # ty: ignore[invalid-method-override]
736736 """
737737 Add an API Gateway Websocket method to the list of allowed methods for the policy.
738738
0 commit comments