]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Ignore (false) Mypy attr-defined error in dns tests
authorDenis Laxalde <denis.laxalde@dalibo.com>
Fri, 5 Nov 2021 08:17:54 +0000 (09:17 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 10 Nov 2021 01:57:39 +0000 (02:57 +0100)
commitb2ba8d0e451087470f7d64ad65463cf2866c91ff
treefbd5085bdf7d368dc93b0bdf1cc4fe224ca66015
parent72bc921cbf0ce6c263473ce10da2f769c031f6f6
Ignore (false) Mypy attr-defined error in dns tests

On test_dns*.py, Mypy raises:
    error: Module has no attribute "resolve_hostaddr_async" [attr-defined]
    error: Module has no attribute "resolve_srv" [attr-defined]

These are wrong since psycopg._dns actually has these names defined.
That's probably a mypy bug.
tests/test_dns.py
tests/test_dns_srv.py