refactor: use slots and strongly typed properties
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ class BaseTestCase(unittest.TestCase):
|
||||
def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None:
|
||||
self.mocks: list[unittest.mock.Mock] = []
|
||||
self.tmp_dir: tempfile.TemporaryDirectory | None = None
|
||||
self.tmp_path = pathlib.Path()
|
||||
self.tmp_path: pathlib.Path = pathlib.Path()
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
@typing.override
|
||||
|
||||
Reference in New Issue
Block a user