Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/891.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Corrected protocol typing for IPHost.value IPAddress -> IPInterface
4 changes: 2 additions & 2 deletions infrahub_sdk/protocols_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ class IntegerOptional(Attribute):


class IPHost(Attribute):
value: ipaddress.IPv4Address | ipaddress.IPv6Address
value: ipaddress.IPv4Interface | ipaddress.IPv6Interface


class IPHostOptional(Attribute):
value: ipaddress.IPv4Address | ipaddress.IPv6Address | None
value: ipaddress.IPv4Interface | ipaddress.IPv6Interface | None


class IPNetwork(Attribute):
Expand Down
Loading