We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6dab5d commit f6dc329Copy full SHA for f6dc329
ellar/core/routing/route.py
@@ -69,9 +69,11 @@ def __init__(
69
self._load_model()
70
71
def _load_model(self) -> None:
72
- extra_route_args: t.List["ExtraEndpointArg"] = (
+ extra_route_args: t.Union[t.List["ExtraEndpointArg"], "ExtraEndpointArg"] = (
73
reflect.get_metadata(EXTRA_ROUTE_ARGS_KEY, self.endpoint) or []
74
)
75
+ if not isinstance(extra_route_args, list):
76
+ extra_route_args = [extra_route_args]
77
78
if self.endpoint_parameter_model is NOT_SET:
79
self.endpoint_parameter_model = self.request_endpoint_args_model(
0 commit comments