From 7f1847ef857b4c2ef65c019cdbe9454d713eb845 Mon Sep 17 00:00:00 2001 From: bigtedde Date: Sun, 16 Jul 2023 15:47:36 -0700 Subject: [PATCH] typehint and initialize variable in ArchiverSetup init --- conftest.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/conftest.py b/conftest.py index 8cfb7dd1e..c28ab91ae 100644 --- a/conftest.py +++ b/conftest.py @@ -1,4 +1,5 @@ import os +from typing import Optional import pytest @@ -92,16 +93,16 @@ class ArchiverSetup: def __init__(self): self.archiver = None - self.tmpdir: str self.prefix = "" - self.repository_path: str - self.repository_location: str - self.input_path: str - self.output_path: str - self.keys_path: str - self.cache_path: str - self.exclude_file_path: str - self.patterns_file_path: str + self.tmpdir: Optional[str] = None + self.repository_path: Optional[str] = None + self.repository_location: Optional[str] = None + self.input_path: Optional[str] = None + self.output_path: Optional[str] = None + self.keys_path: Optional[str] = None + self.cache_path: Optional[str] = None + self.exclude_file_path: Optional[str] = None + self.patterns_file_path: Optional[str] = None @pytest.fixture()