Skip to content

Commit

Permalink
Update mypy comment
Browse files Browse the repository at this point in the history
  • Loading branch information
itdependsnetworks committed Aug 1, 2023
1 parent f71f678 commit 4e85c5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netutils/ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e85c5d

Please sign in to comment.