mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-11-05 06:39:33 +08:00
refactor(types): specialize response models through runtime factory
This commit is contained in:
@@ -175,7 +175,7 @@ class ResponseAPIRoute(APIRoute):
|
||||
force_raw=force_raw,
|
||||
)
|
||||
if should_wrap:
|
||||
kwargs["response_model"] = Response[response_model]
|
||||
kwargs["response_model"] = Response.__class_getitem__(response_model)
|
||||
endpoint = self._wrap_endpoint(endpoint)
|
||||
|
||||
kwargs["responses"] = self._merge_error_responses(
|
||||
|
||||
Reference in New Issue
Block a user