Skip to content

Commit 3c97ac9

Browse files
author
Michael Brewer
authored
chore: remove tuple support
1 parent 9303176 commit 3c97ac9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

aws_lambda_powertools/event_handler/api_gateway.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -662,13 +662,11 @@ def include_router(self, router: "Router", prefix: Optional[str] = None) -> None
662662
An optional prefix to be added to the originally defined rule
663663
"""
664664
router._app = self
665-
666665
for route, func in router.routes.items():
667666
if prefix:
668667
rule = route[0]
669668
rule = prefix if rule == "/" else f"{prefix}{rule}"
670669
route = (rule, *route[1:])
671-
672670
self.route(*route)(func)
673671

674672

@@ -697,7 +695,7 @@ def route(
697695
cache_control: Optional[str] = None,
698696
):
699697
def register_route(func: Callable):
700-
if isinstance(method, (list, tuple)):
698+
if isinstance(method, list):
701699
for item in method:
702700
self.routes[(rule, item, cors, compress, cache_control)] = func
703701
else:

0 commit comments

Comments
 (0)