File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ def _swagger_problem_response(description: str, examples: list[Example]) -> dict
6666
6767
6868def _generate_swagger_response (
69- * exceptions : Problem ,
69+ * exceptions : type [ Problem ] ,
7070 documentation_uri_template : str = "" ,
7171 strict : bool = False ,
7272) -> dict :
@@ -87,7 +87,7 @@ def _generate_swagger_response(
8787 )
8888
8989
90- def generate_swagger_response (* exceptions : Problem , documentation_uri_template : str = "" , strict : bool = False ) -> dict :
90+ def generate_swagger_response (* exceptions : type [ Problem ] , documentation_uri_template : str = "" , strict : bool = False ) -> dict :
9191 warn (
9292 "Direct calls to generate_swagger_response are being deprecated, use `eh.generate_swagger_response(...)` instead." ,
9393 FutureWarning ,
@@ -101,7 +101,7 @@ def generate_swagger_response(*exceptions: Problem, documentation_uri_template:
101101
102102
103103class ExceptionHandler (BaseExceptionHandler ):
104- def generate_swagger_response (self , * exceptions : Problem ) -> dict :
104+ def generate_swagger_response (self , * exceptions : type [ Problem ] ) -> dict :
105105 return _generate_swagger_response (
106106 * exceptions ,
107107 documentation_uri_template = self .documentation_uri_template ,
You can’t perform that action at this time.
0 commit comments