Skip to content

Commit 0a027d7

Browse files
committed
ruff: remove pass statements
1 parent 183e60a commit 0a027d7

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

pytest_httpserver/httpserver.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,32 +59,24 @@ class Error(Exception):
5959
Base class for all exception defined in this package.
6060
"""
6161

62-
pass
63-
6462

6563
class NoHandlerError(Error):
6664
"""
6765
Raised when a :py:class:`RequestHandler` has no registered method to serve the request.
6866
"""
6967

70-
pass
71-
7268

7369
class HTTPServerError(Error):
7470
"""
7571
Raised when there's a problem with HTTP server.
7672
"""
7773

78-
pass
79-
8074

8175
class NoMethodFoundForMatchingHeaderValueError(Error):
8276
"""
8377
Raised when a :py:class:`HeaderValueMatcher` has no registered method to match the header value.
8478
"""
8579

86-
pass
87-
8880

8981
class WaitingSettings:
9082
"""Class for providing default settings and storing them in HTTPServer
@@ -282,7 +274,6 @@ def match(self, uri: str) -> bool:
282274
with "/" and does not contain the query part.
283275
:return: True if there's a match, False otherwise
284276
"""
285-
pass
286277

287278

288279
class RequestMatcher:
@@ -524,8 +515,6 @@ def respond_with_response(self, response: Response):
524515
:param response: the response object which will be responded
525516
"""
526517

527-
pass
528-
529518

530519
class RequestHandler(RequestHandlerBase):
531520
"""
@@ -843,7 +832,6 @@ def dispatch(self, request: Request) -> Response:
843832
:param request: the request object from the werkzeug library
844833
:return: the response object what the handler responded, or a response which contains the error
845834
"""
846-
pass
847835

848836
@Request.application # type: ignore
849837
def application(self, request: Request):

0 commit comments

Comments
 (0)