From 0e723baf634a63fd9faa462561b8aa947bc5544d Mon Sep 17 00:00:00 2001 From: Michael Ablassmeier Date: Tue, 23 Jul 2024 16:10:55 +0200 Subject: [PATCH] fix mypy error --- libvirtnbdbackup/ssh/client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libvirtnbdbackup/ssh/client.py b/libvirtnbdbackup/ssh/client.py index 39f8eb07..e246b111 100644 --- a/libvirtnbdbackup/ssh/client.py +++ b/libvirtnbdbackup/ssh/client.py @@ -50,8 +50,7 @@ def __init__( self.host = host self.user = user self.port = port - self.copy = Callable[[str, str], None] - self.copy = self.copyFrom + self.copy: Callable[[str, str], None] = self.copyFrom if mode == Mode.UPLOAD: self.copy = self.copyTo self.connection = self.connect()