Skip to content

Commit 18c84ed

Browse files
committed
fixed failing test
1 parent 1dc6cf0 commit 18c84ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ellar/core/routing/route.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ def build_route_operation( # type:ignore
8686
self.endpoint_parameter_model = self.request_endpoint_args_model(
8787
path=self.path_format,
8888
endpoint=self.endpoint,
89-
operation_unique_id=self.get_operation_unique_id(
90-
methods=list(self.methods)
91-
),
89+
operation_unique_id=self.get_operation_unique_id(methods=self.methods),
9290
param_converters=self.param_convertors,
9391
)
9492

@@ -113,7 +111,9 @@ def _load_model(self) -> None:
113111
route_responses=self._defined_responses # type: ignore
114112
)
115113

116-
def get_operation_unique_id(self, methods: t.Union[t.Sequence[str], str]) -> str:
114+
def get_operation_unique_id(
115+
self, methods: t.Union[t.Set[str], t.Sequence[str], str]
116+
) -> str:
117117
_methods: t.Sequence[str] = (
118118
list(methods) if isinstance(methods, set) else [t.cast(str, methods)]
119119
)

0 commit comments

Comments
 (0)