summaryrefslogtreecommitdiff
path: root/dns/opcode.py
diff options
context:
space:
mode:
authorwouter bolsterlee <wouter@bolsterl.ee>2022-03-11 18:23:02 +0100
committerwouter bolsterlee <wouter@bolsterl.ee>2022-03-11 18:23:02 +0100
commit6b8dabc25c63eec35f41297fddceab4302ef84c2 (patch)
tree0d87cc63fb8ed2049e950c089916930505fd7628 /dns/opcode.py
parentd4ec134b09adcc243638af77a8bf0e6a09625b62 (diff)
downloaddnspython-6b8dabc25c63eec35f41297fddceab4302ef84c2.tar.gz
Add type annotations for various BaseResolver attributes
This adds class level type annotations for BaseResolver attributes. partially based on the existing annotations from `.reset()` (which have now moved). Mypy does not infer BaseResolver attributes because those are not defined `.__init__()` method, but in `.reset()`; there is already a pylint override for this. The result is that application code that accesses `resolver.port` and other attributes incorrectly triggers mypy errors about the seemingly not existing attribute. While at it, fix a few easy to address mypy/flake8 warnings that popped up on my screen while editing this file.
Diffstat (limited to 'dns/opcode.py')
0 files changed, 0 insertions, 0 deletions