Skip to content

Commit 64f71d4

Browse files
committed
Simplify combined fixed-length tuple typing
A bit of a corner-case how it ought to be type checked. astral-sh/ty#1504 Making the modification since it's safe enough, and the easiest way to continue evaluating _ty_.
1 parent a1fe312 commit 64f71d4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ssh_zone_handler/bind.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class BindCommand(SshZoneCommand):
2929
def __init__(self, config: ZoneHandlerConf) -> None:
3030
super().__init__(config)
3131

32-
self.rndc_prefix: Final[tuple[str, str, str]] = self.sudo_prefix + (
32+
self.rndc_prefix: Final[tuple[str, ...]] = self.sudo_prefix + (
3333
"/usr/sbin/rndc",
3434
)
3535

ssh_zone_handler/knot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class KnotCommand(SshZoneCommand):
2929
def __init__(self, config: ZoneHandlerConf) -> None:
3030
super().__init__(config)
3131

32-
self.knotc_prefix: Final[tuple[str, str, str]] = self.sudo_prefix + (
32+
self.knotc_prefix: Final[tuple[str, ...]] = self.sudo_prefix + (
3333
"/usr/sbin/knotc",
3434
)
3535

0 commit comments

Comments
 (0)