Skip to content

Commit

Permalink
fix: server public ipv4 and ipv6 properties are nullable (#455)
Browse files Browse the repository at this point in the history
Fix the incorrect typing that was caught in #454
  • Loading branch information
jooola authored Oct 21, 2024
1 parent ce2b336 commit d2cfee6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hcloud/servers/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ class PublicNetwork(BaseDomain):

def __init__(
self,
ipv4: IPv4Address,
ipv6: IPv6Network,
ipv4: IPv4Address | None,
ipv6: IPv6Network | None,
floating_ips: list[BoundFloatingIP],
primary_ipv4: BoundPrimaryIP | None,
primary_ipv6: BoundPrimaryIP | None,
Expand Down

0 comments on commit d2cfee6

Please sign in to comment.