From 4e85c5d80b17a71b2a71167a7c42a2ddaa45b428 Mon Sep 17 00:00:00 2001 From: itdependsnetworks Date: Tue, 1 Aug 2023 10:17:43 -0400 Subject: [PATCH] Update mypy comment --- netutils/ip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netutils/ip.py b/netutils/ip.py index afb90b34..fbd93703 100644 --- a/netutils/ip.py +++ b/netutils/ip.py @@ -267,7 +267,7 @@ def is_ip_range(ip_range: str) -> bool: end_ip_obj = ipaddress.ip_address(end_ip) if not type(start_ip_obj) == type(end_ip_obj): # pylint: disable=unidiomatic-typecheck return False - # IP version being the same is enforced above + # IP version being the same is enforced above, mypy disagrees, can safely ignore if not start_ip_obj < end_ip_obj: # type: ignore return False return True