1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-23 00:07:38 +00:00

typehint and initialize variable in ArchiverSetup init

This commit is contained in:
bigtedde 2023-07-16 15:47:36 -07:00
parent 8a5664dcfd
commit 7f1847ef85

View file

@ -1,4 +1,5 @@
import os import os
from typing import Optional
import pytest import pytest
@ -92,16 +93,16 @@ class ArchiverSetup:
def __init__(self): def __init__(self):
self.archiver = None self.archiver = None
self.tmpdir: str
self.prefix = "" self.prefix = ""
self.repository_path: str self.tmpdir: Optional[str] = None
self.repository_location: str self.repository_path: Optional[str] = None
self.input_path: str self.repository_location: Optional[str] = None
self.output_path: str self.input_path: Optional[str] = None
self.keys_path: str self.output_path: Optional[str] = None
self.cache_path: str self.keys_path: Optional[str] = None
self.exclude_file_path: str self.cache_path: Optional[str] = None
self.patterns_file_path: str self.exclude_file_path: Optional[str] = None
self.patterns_file_path: Optional[str] = None
@pytest.fixture() @pytest.fixture()