Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Byczkowski <38091261+qduk@users.noreply.github.com>
  • Loading branch information
itdependsnetworks and qduk committed Aug 15, 2023
1 parent 299485a commit f01b9c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netutils/ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit f01b9c6

Please sign in to comment.