From d2cfee61167857bfe3ff88a441622da2c913810c Mon Sep 17 00:00:00 2001 From: "Jonas L." Date: Mon, 21 Oct 2024 09:56:06 +0200 Subject: [PATCH] fix: server public ipv4 and ipv6 properties are nullable (#455) Fix the incorrect typing that was caught in #454 --- hcloud/servers/domain.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hcloud/servers/domain.py b/hcloud/servers/domain.py index 4f9d80d..368464c 100644 --- a/hcloud/servers/domain.py +++ b/hcloud/servers/domain.py @@ -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,