# pylint: disable=unused-import
-from dns._asyncbackend import Socket, DatagramSocket, \
- StreamSocket, Backend # noqa: F401 lgtm[py/unused-import]
+from dns._asyncbackend import Socket, DatagramSocket, StreamSocket, Backend # noqa: F401 lgtm[py/unused-import]
# pylint: enable=unused-import
def __delitem__(self, i):
raise TypeError('immutable')
- def __ior__(self, other):
+ # lgtm complains about these not raising ArithmeticError, but there is
+ # precedent for overrides of these methods in other classes to raise
+ # TypeError, and it seems like the better exception.
+
+ def __ior__(self, other): # lgtm[py/unexpected-raise-in-special-method]
raise TypeError('immutable')
- def __iand__(self, other):
+ def __iand__(self, other): # lgtm[py/unexpected-raise-in-special-method]
raise TypeError('immutable')
- def __iadd__(self, other):
+ def __iadd__(self, other): # lgtm[py/unexpected-raise-in-special-method]
raise TypeError('immutable')
- def __isub__(self, other):
+ def __isub__(self, other): # lgtm[py/unexpected-raise-in-special-method]
raise TypeError('immutable')
def clear(self):
if RELEASELEVEL == 0x0f: # pragma: no cover
#: version
version = '%d.%d.%d' % (MAJOR, MINOR, MICRO) # lgtm[py/unreachable-statement]
-elif RELEASELEVEL == 0x00: # pragma: no cover
+elif RELEASELEVEL == 0x00: # pragma: no cover lgtm[py/unreachable-statement]
version = '%d.%d.%ddev%d' % (MAJOR, MINOR, MICRO, SERIAL) # lgtm[py/unreachable-statement]
elif RELEASELEVEL == 0x0c: # pragma: no cover
version = '%d.%d.%drc%d' % (MAJOR, MINOR, MICRO, SERIAL) # lgtm[py/unreachable-statement]