We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb0a82d commit ac26946Copy full SHA for ac26946
1 file changed
iptools/__init__.py
@@ -243,7 +243,7 @@ def __hash__(self):
243
def _cast(self, item):
244
if isinstance(item, basestring):
245
item = _address2long(item)
246
- if type(item) not in [type(1), type(ipv4.MAX_IP), type(ipv6.MAX_IP)]:
+ if type(item) not in (type(1), type(ipv4.MAX_IP), type(ipv6.MAX_IP)):
247
raise TypeError(
248
"expected ip address, 32-bit integer or 128-bit integer")
249
0 commit comments