Skip to content

Commit

Permalink
Updates a type hint.
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanderaa committed Jan 14, 2025
1 parent f6a9b86 commit 0c92880
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pynautobot/models/ipam.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,16 @@ def __str__(self):
return parent_record_string or str(self.prefix)

@property
def available_ips(self):
def available_ips(self) -> DetailEndpoint:
"""
Represents the ``available-ips`` detail endpoint.
Returns a DetailEndpoint object that is the interface for
viewing and creating IP addresses inside a prefix.
Returns:
DetailEndpoint: The detail endpoint interface for available IPs.
Examples:
List available IPs:
Expand Down Expand Up @@ -66,7 +69,7 @@ def available_ips(self):
return DetailEndpoint(self, "available-ips", custom_return=IpAddresses)

@property
def available_prefixes(self):
def available_prefixes(self) -> DetailEndpoint:
"""
Represents the ``available-prefixes`` detail endpoint.
Expand All @@ -77,6 +80,9 @@ def available_prefixes(self):
except that the dict (or list of dicts) passed to ``.create()``
needs to have a ``prefix_length`` key/value specified.
Returns:
DetailEndpoint: The detail endpoint interface for available prefixes.
Examples:
List available prefixes:
Expand Down

0 comments on commit 0c92880

Please sign in to comment.