File tree Expand file tree Collapse file tree
src/autotarcompress/cli/commands Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55"""
66
77import logging
8+ from typing import TYPE_CHECKING
89
910from autotarcompress .backup_manager import BackupManager
1011from autotarcompress .cli .commands .command import Command
11- from autotarcompress .config import BackupConfig
12+
13+ if TYPE_CHECKING :
14+ from autotarcompress .config import BackupConfig
1215
1316
1417class BackupCommand (Command ):
Original file line number Diff line number Diff line change 55"""
66
77import logging
8+ from typing import TYPE_CHECKING
89
910from autotarcompress .cli .commands .command import Command
10- from autotarcompress .config import BackupConfig
1111from autotarcompress .decrypt_manager import DecryptManager
1212
13+ if TYPE_CHECKING :
14+ from autotarcompress .config import BackupConfig
15+
1316
1417class DecryptCommand (Command ):
1518 """Command to securely decrypt backup archives using OpenSSL with PBKDF2.
Original file line number Diff line number Diff line change 1111"""
1212
1313import logging
14+ from typing import TYPE_CHECKING
1415
1516from autotarcompress .cli .commands .command import Command
16- from autotarcompress .config import BackupConfig
1717from autotarcompress .encrypt_manager import EncryptManager
1818
19+ if TYPE_CHECKING :
20+ from autotarcompress .config import BackupConfig
21+
1922
2023class EncryptCommand (Command ):
2124 """Concrete command to perform encryption.
Original file line number Diff line number Diff line change 55"""
66
77import logging
8+ from typing import TYPE_CHECKING
89
910from autotarcompress .cli .commands .command import Command
10- from autotarcompress .config import BackupConfig
1111from autotarcompress .extract_manager import ExtractManager
1212
13+ if TYPE_CHECKING :
14+ from autotarcompress .config import BackupConfig
15+
1316
1417class ExtractCommand (Command ):
1518 """Command to extract tar.xz and tar.zst backup archives securely."""
Original file line number Diff line number Diff line change 55"""
66
77import logging
8+ from typing import TYPE_CHECKING
89
910from autotarcompress .cli .commands .command import Command
10- from autotarcompress .config import BackupConfig
1111from autotarcompress .info_manager import InfoManager
1212
13+ if TYPE_CHECKING :
14+ from autotarcompress .config import BackupConfig
15+
1316
1417class InfoCommand (Command ):
1518 """Command to display last backup information from backup info file."""
You can’t perform that action at this time.
0 commit comments