Skip to content

Commit 9963713

Browse files
committed
ruff: rename callable to func
1 parent d9e3ecb commit 9963713

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pytest_httpserver/httpserver.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ def __init__(self, matchers: Mapping[str, Callable[[str | None, str], bool]] | N
136136

137137
@staticmethod
138138
def authorization_header_value_matcher(actual: str | None, expected: str) -> bool:
139-
callable = getattr(Authorization, "from_header", None)
140-
if callable is None: # Werkzeug < 2.3.0
141-
callable = werkzeug.http.parse_authorization_header # type: ignore[attr-defined]
142-
return callable(actual) == callable(expected)
139+
func = getattr(Authorization, "from_header", None)
140+
if func is None: # Werkzeug < 2.3.0
141+
func = werkzeug.http.parse_authorization_header # type: ignore[attr-defined]
142+
return func(actual) == func(expected)
143143

144144
@staticmethod
145145
def default_header_value_matcher(actual: str | None, expected: str) -> bool:

0 commit comments

Comments
 (0)