Skip to content

Commit f959d06

Browse files
committed
ruff: add noqa FBT001
1 parent 9266102 commit f959d06

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

pytest_httpserver/httpserver.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,12 @@ class WaitingSettings:
9191
:param timeout: time (in seconds) until time is out
9292
"""
9393

94-
def __init__(self, raise_assertions: bool = True, stop_on_nohandler: bool = True, timeout: float = 5):
94+
def __init__(
95+
self,
96+
raise_assertions: bool = True, # noqa: FBT001
97+
stop_on_nohandler: bool = True, # noqa: FBT001
98+
timeout: float = 5,
99+
):
95100
self.raise_assertions = raise_assertions
96101
self.stop_on_nohandler = stop_on_nohandler
97102
self.timeout = timeout
@@ -107,7 +112,7 @@ def __init__(self):
107112
self._start = time.monotonic()
108113
self._stop = None
109114

110-
def complete(self, result: bool):
115+
def complete(self, result: bool): # noqa: FBT001
111116
self._result = result
112117
self._stop = time.monotonic()
113118

@@ -234,7 +239,7 @@ class BooleanQueryMatcher(QueryMatcher):
234239
Matches the query depending on the boolean value
235240
"""
236241

237-
def __init__(self, result: bool):
242+
def __init__(self, result: bool): # noqa: FBT001
238243
"""
239244
:param result: if this parameter is true, the query match will be always
240245
successful. Otherwise, no query match will be successful.
@@ -1265,7 +1270,7 @@ def dispatch(self, request: Request) -> Response:
12651270

12661271
return response
12671272

1268-
def _set_waiting_result(self, value: bool) -> None:
1273+
def _set_waiting_result(self, value: bool) -> None: # noqa: FBT001
12691274
"""Set waiting_result
12701275
12711276
Setting is implemented as putting value to queue without waiting. If queue is full we simply ignore the

0 commit comments

Comments
 (0)