mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-25 06:38:02 -05:00
pylint: Teach pylint about more RRs types
There are many types of RRs which are provided by dnspython. This is not all, but enough for now to fix linting errors caused by new dnspython 2.0. Fixes: https://pagure.io/freeipa/issue/8468 Signed-off-by: Stanislav Levin <slev@altlinux.org> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
1 parent
11a64478b3
commit
de105aa8fc
1 file changed
+8
-1
+8
-1
@@ -554,17 +554,24 @@ AstroidBuilder(MANAGER).string_build(textwrap.dedent(
|
||||
import dns.rdataclass
|
||||
import dns.rdatatype
|
||||
|
||||
dns.flags.AD = 0
|
||||
dns.flags.CD = 0
|
||||
dns.flags.DO = 0
|
||||
dns.flags.RD = 0
|
||||
|
||||
dns.rdataclass.IN = 0
|
||||
|
||||
dns.rdatatype.NS = 0
|
||||
dns.rdatatype.A = 0
|
||||
dns.rdatatype.AAAA = 0
|
||||
dns.rdatatype.CNAME = 0
|
||||
dns.rdatatype.DNSKEY = 0
|
||||
dns.rdatatype.MX = 0
|
||||
dns.rdatatype.NS = 0
|
||||
dns.rdatatype.PTR = 0
|
||||
dns.rdatatype.RRSIG = 0
|
||||
dns.rdatatype.SOA = 0
|
||||
dns.rdatatype.SRV = 0
|
||||
dns.rdatatype.TXT = 0
|
||||
dns.rdatatype.URI = 0
|
||||
"""
|
||||
))
|
||||
Reference in new issue
Block a user