view argument type hints must also accept None value

This commit is contained in:
Lukasz Polanski 2023-06-08 18:22:35 +02:00
parent 4828bbf00b
commit c5ae5bf405
1 changed files with 1 additions and 1 deletions

View File

@ -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}]")