]> mj.ucw.cz Git - pynsc.git/commitdiff
Let some arguments be keyword-only master
authorMartin Mares <mj@ucw.cz>
Mon, 8 Jul 2024 19:23:54 +0000 (21:23 +0200)
committerMartin Mares <mj@ucw.cz>
Mon, 8 Jul 2024 19:23:54 +0000 (21:23 +0200)
nsconfig/core.py

index 90be8dd96d0fd12f02e43a6f48f23a9a6dfaf9ab..7df3234b7ec147afb04ef0934d18a5592e830870 100644 (file)
@@ -129,6 +129,7 @@ class NscZoneConfig:
     default_config: Optional['NscZoneConfig'] = None
 
     def __init__(self,
+                 *,
                  admin_email: Optional[str] = None,
                  refresh: Optional[int | timedelta] = None,
                  retry: Optional[int | timedelta] = None,
@@ -436,9 +437,10 @@ class Nsc:
     state_dir: Path
     zone_dir: Path
     secondary_dir: Path
-    daemon: 'NscDaemon'  # Set by DaemonConfig class
+    daemon: 'NscDaemon'
 
     def __init__(self,
+                 *,
                  directory: str = '.',
                  daemon: Optional['NscDaemon'] = None,
                  **kwargs) -> None:
@@ -464,6 +466,7 @@ class Nsc:
 
     def add_zone(self,
                  name: Optional[str] = None,
+                 *,
                  reverse_for: str | IPNetwork | None = None,
                  alias_for: Optional[NscZonePrimary] = None,
                  follow_primary: str | IPAddress | None = None,