refactor: use slots and strongly typed properties

This commit is contained in:
2026-04-20 10:48:58 +02:00
parent fc7d3cb0e8
commit 5fb10ffb9d
10 changed files with 161 additions and 91 deletions
+1 -1
View File
@@ -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