Pylint "no-member" check fails on Bullseye
Job #1947023 failed for 24813ab4 on Debian 11 Bullseye with:
$ PYTHONPATH="$PYTHONPATH:$CI_PROJECT_DIR/bin/python"
$ pylint --rcfile $CI_PROJECT_DIR/.pylintrc $(git ls-files '*.py' | grep -vE '(ans\.py|dangerfile\.py)')
************* Module tests-checkds
bin/tests/system/checkds/tests-checkds.py:98:27: E1101: Module 'dns.rcode' has no 'NOERROR' member (no-member)
bin/tests/system/checkds/tests-checkds.py:101:50: E1101: Module 'dns.rdataclass' has no 'IN' member (no-member)
bin/tests/system/checkds/tests-checkds.py:102:24: E1101: Module 'dns.rdatatype' has no 'DS' member (no-member)
bin/tests/system/checkds/tests-checkds.py:102:42: E1101: Module 'dns.rdatatype' has no 'NONE' member (no-member)
bin/tests/system/checkds/tests-checkds.py:143:33: E1101: Module 'dns.rcode' has no 'NOERROR' member (no-member)
bin/tests/system/checkds/tests-checkds.py:161:29: E1101: Module 'dns.rcode' has no 'NOERROR' member (no-member)
************* Module helper
bin/tests/system/statschannel/helper.py:98:26: E1101: Module 'dns.rcode' has no 'NOERROR' member (no-member)
bin/tests/system/statschannel/helper.py:106:26: E1101: Module 'dns.rcode' has no 'NOERROR' member (no-member)
************* Module tests-tcp
bin/tests/system/timeouts/tests-tcp.py:149:33: E1101: Module 'dns.message' has no 'ANSWER' member (no-member)
bin/tests/system/timeouts/tests-tcp.py:150:33: E1101: Module 'dns.rdataclass' has no 'IN' member (no-member)
bin/tests/system/timeouts/tests-tcp.py:150:52: E1101: Module 'dns.rdatatype' has no 'SOA' member (no-member)
bin/tests/system/timeouts/tests-tcp.py:157:37: E1101: Module 'dns.message' has no 'ANSWER' member (no-member)
bin/tests/system/timeouts/tests-tcp.py:158:37: E1101: Module 'dns.rdataclass' has no 'IN' member (no-member)
bin/tests/system/timeouts/tests-tcp.py:158:56: E1101: Module 'dns.rdatatype' has no 'SOA' member (no-member)
-----------------------------------
Your code has been rated at 9.40/10
This needs to be fixed for the base image being switched to Bullseye.