diff --git a/src/fastapi_problem/handler.py b/src/fastapi_problem/handler.py index 64db81e..89451ce 100644 --- a/src/fastapi_problem/handler.py +++ b/src/fastapi_problem/handler.py @@ -204,7 +204,7 @@ def new_exception_handler( # noqa: PLR0913 def add_exception_handler( # noqa: PLR0913 app: FastAPI, - eh: ExceptionHandler or None = None, + eh: ExceptionHandler | None = None, *, logger: logging.Logger | None = None, cors: CorsConfiguration | None = None,