From c5ae5bf4057756030f0447681e9e6c2dccb59ec1 Mon Sep 17 00:00:00 2001 From: Lukasz Polanski Date: Thu, 8 Jun 2023 18:22:35 +0200 Subject: [PATCH] view argument type hints must also accept None value --- octodns_netbox_dns/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octodns_netbox_dns/__init__.py b/octodns_netbox_dns/__init__.py index 8e2682f..420e276 100644 --- a/octodns_netbox_dns/__init__.py +++ b/octodns_netbox_dns/__init__.py @@ -64,7 +64,7 @@ class NetBoxDNSSource(octodns.provider.base.BaseProvider): _ttl: int def __init__( - self, id: int, url: str, token: str, view: str = None, ttl=3600, replace_duplicates: bool = False, + self, id: int, url: str, token: str, view: str | None = None, ttl=3600, replace_duplicates: bool = False, ): """Initialize the NetboxDNSSource.""" self.log = logging.getLogger(f"NetboxDNSSource[{id}]")