Skip to content

Commit d2cfee6

Browse files
authored
fix: server public ipv4 and ipv6 properties are nullable (#455)
Fix the incorrect typing that was caught in #454
1 parent ce2b336 commit d2cfee6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hcloud/servers/domain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ class PublicNetwork(BaseDomain):
293293

294294
def __init__(
295295
self,
296-
ipv4: IPv4Address,
297-
ipv6: IPv6Network,
296+
ipv4: IPv4Address | None,
297+
ipv6: IPv6Network | None,
298298
floating_ips: list[BoundFloatingIP],
299299
primary_ipv4: BoundPrimaryIP | None,
300300
primary_ipv6: BoundPrimaryIP | None,

0 commit comments

Comments
 (0)