From 32130b4db3e9000459d29e19f51ae42b58b545cb Mon Sep 17 00:00:00 2001 From: Denis Laxalde Date: Tue, 2 Nov 2021 10:26:33 +0100 Subject: [PATCH] Let mypy ignore an expected type error in pq tests --- tests/pq/test_misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pq/test_misc.py b/tests/pq/test_misc.py index c92160a45..ec65bb3ff 100644 --- a/tests/pq/test_misc.py +++ b/tests/pq/test_misc.py @@ -14,7 +14,7 @@ def test_error_message(pgconn): assert primary.decode("ascii") in msg with pytest.raises(TypeError): - pq.error_message(None) + pq.error_message(None) # type: ignore[arg-type] res.clear() assert pq.error_message(res) == "no details available" -- 2.47.3