From 2c7e7322334eeb5dff7d8e93c0cb99b8625f809a Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Tue, 16 Nov 2021 00:11:36 +0000 Subject: [PATCH] Ignore monkey-patching functions. mypy doesn't currently allow this. See https://github.com/python/mypy/issues/2427 for details/complaints. --- tests/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/utils.py b/tests/utils.py index 8b1b3f2e56..260c2e91a2 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -341,12 +341,12 @@ def setup_test_homeserver( async def hash(p): return hashlib.md5(p.encode("utf8")).hexdigest() - hs.get_auth_handler().hash = hash + hs.get_auth_handler().hash = hash # type: ignore async def validate_hash(p, h): return hashlib.md5(p.encode("utf8")).hexdigest() == h - hs.get_auth_handler().validate_hash = validate_hash + hs.get_auth_handler().validate_hash = validate_hash # type: ignore return hs