Fixed mypy error in route registry test caused by union return type unpacking.
CI / Formatting (push) Successful in 5s
CI / Linting (push) Successful in 5s
CI / Tests (Python 3.12) (push) Successful in 20s
CI / Tests (Python 3.13) (push) Successful in 19s
CI / Tests (Python 3.14) (push) Successful in 30s
CI / Type Checking (push) Successful in 11s
CI / Spelling (push) Successful in 7s

This commit is contained in:
2026-03-26 17:27:03 -04:00
parent 4ff35fdf6b
commit fa23ae982d
+2 -2
View File
@@ -360,8 +360,8 @@ class TestRouteRegistry:
info = reg.register("/data", _noop, methods=["GET"], module_name="mod")
assert info.full_path == "/owlbot/mod/data"
assert info.methods == frozenset({"GET"})
route_info, _ = reg.match("/owlbot/mod/data", "GET")
assert route_info is info
result = reg.match("/owlbot/mod/data", "GET")
assert result[0] is info
def test_unregister_unknown_path(self) -> None:
"""unregister() returns False for unknown path."""