From f01b9c6cd8db3ca38dfc5aca2002b4415dfed43f Mon Sep 17 00:00:00 2001 From: Ken Celenza Date: Tue, 15 Aug 2023 15:01:57 -0400 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Adam Byczkowski <38091261+qduk@users.noreply.github.com> --- netutils/ip.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netutils/ip.py b/netutils/ip.py index 7926e3c5..b73ab07f 100644 --- a/netutils/ip.py +++ b/netutils/ip.py @@ -331,7 +331,7 @@ def _convert_ip(ip: str) -> str: raise ValueError( f"IP range start `{item_obj_start}` and end `{item_obj_end}` IPs must both be same IPVersion." ) - # Use this validation method, since it is consitent with ranges + # Use this validation method, since it is consistent with ranges # vs the `.subnet_of` method which is not. if item_obj_start <= ip_obj_start <= ip_obj_end <= item_obj_end: # type: ignore return True @@ -549,7 +549,7 @@ def get_peer_ip(ip_interface: str) -> str: def get_range_ips(ip_range: str) -> t.Tuple[IPAddress, IPAddress]: - """Get's the two IPs as a tuple of IPAddress objects. + """Gets the two IPs as a tuple of IPAddress objects. Args: ip_range: An IP address range in string format that is properly formatted.