Skip to content

Commit ef6348d

Browse files
committed
Merge branch 'main' of github.com:NRWLDev/fastapi-problem
2 parents 997a2a6 + d2f2165 commit ef6348d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/fastapi_problem/handler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _swagger_problem_response(description: str, examples: list[Example]) -> dict
6666

6767

6868
def _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

103103
class 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,

0 commit comments

Comments
 (0)