@@ -78,7 +78,7 @@ class NotFound(ProblemException):
7878 def __init__ (
7979 self , title : str = 'Not Found' , detail : Optional [str ] = None , headers : Optional [Dict ] = None , ** kwargs
8080 ):
81- super (NotFound , self ).__init__ (
81+ super ().__init__ (
8282 status = 404 , type = EXCEPTIONS_LINK_MAP [404 ], title = title , detail = detail , headers = headers , ** kwargs
8383 )
8484
@@ -93,7 +93,7 @@ def __init__(
9393 headers : Optional [Dict ] = None ,
9494 ** kwargs ,
9595 ):
96- super (BadRequest , self ).__init__ (
96+ super ().__init__ (
9797 status = 400 , type = EXCEPTIONS_LINK_MAP [400 ], title = title , detail = detail , headers = headers , ** kwargs
9898 )
9999
@@ -108,7 +108,7 @@ def __init__(
108108 headers : Optional [Dict ] = None ,
109109 ** kwargs ,
110110 ):
111- super (Unauthenticated , self ).__init__ (
111+ super ().__init__ (
112112 status = 401 , type = EXCEPTIONS_LINK_MAP [401 ], title = title , detail = detail , headers = headers , ** kwargs
113113 )
114114
@@ -119,7 +119,7 @@ class PermissionDenied(ProblemException):
119119 def __init__ (
120120 self , title : str = 'Forbidden' , detail : Optional [str ] = None , headers : Optional [Dict ] = None , ** kwargs
121121 ):
122- super (PermissionDenied , self ).__init__ (
122+ super ().__init__ (
123123 status = 403 , type = EXCEPTIONS_LINK_MAP [403 ], title = title , detail = detail , headers = headers , ** kwargs
124124 )
125125
@@ -130,7 +130,7 @@ class AlreadyExists(ProblemException):
130130 def __init__ (
131131 self , title = 'Conflict' , detail : Optional [str ] = None , headers : Optional [Dict ] = None , ** kwargs
132132 ):
133- super (AlreadyExists , self ).__init__ (
133+ super ().__init__ (
134134 status = 409 , type = EXCEPTIONS_LINK_MAP [409 ], title = title , detail = detail , headers = headers , ** kwargs
135135 )
136136
@@ -145,6 +145,6 @@ def __init__(
145145 headers : Optional [Dict ] = None ,
146146 ** kwargs ,
147147 ):
148- super (Unknown , self ).__init__ (
148+ super ().__init__ (
149149 status = 500 , type = EXCEPTIONS_LINK_MAP [500 ], title = title , detail = detail , headers = headers , ** kwargs
150150 )
0 commit comments