From 377b4770f6853559d74ab3a07a359be1871635f0 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Thu, 18 Jan 2024 22:26:36 +0100 Subject: [PATCH] action typing --- dotdrop/action.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dotdrop/action.py b/dotdrop/action.py index 07f1135..32e0c0d 100644 --- a/dotdrop/action.py +++ b/dotdrop/action.py @@ -23,7 +23,7 @@ class Cmd(DictParser): eq_ignore = ('log',) descr = 'command' - def __init__(self, key: str, action: str): + def __init__(self, key: str, action: str) -> None: """constructor @key: action key @action: action string @@ -121,7 +121,7 @@ class Action(Cmd): post = 'post' descr = 'action' - def __init__(self, key: str, kind: str, action: str): + def __init__(self, key: str, kind: str, action: str) -> None: """constructor @key: action key @kind: type of action (pre or post) @@ -131,7 +131,7 @@ class Action(Cmd): self.kind = kind self.args = [] - def copy(self, args: List[str]): + def copy(self, args: List[str]) -> "Action": """return a copy of this object with arguments""" action = Action(self.key, self.kind, self.action) action.args = args