mirror of
https://github.com/aclist/dztui.git
synced 2026-11-07 02:20:39 +01:00
chore: clear typehinting errors
This commit is contained in:
1 parent
3d33d4f1e0
commit
52d51f2bd7
14 files changed
+50
-41
No files matched your search
@@ -1,5 +1,5 @@
|
||||
from dataclasses import dataclass
|
||||
from typing import Any, Sequence
|
||||
from typing import Any, Sequence, TYPE_CHECKING
|
||||
|
||||
from dzgui.const.enum import HELP_MENU_ROWS
|
||||
from dzgui.util.redact import redact_log
|
||||
@@ -17,6 +17,10 @@ GTYPE_TO_PYTHON = {
|
||||
}
|
||||
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
@dataclass(slots=True, frozen=True)
|
||||
class ServerCols:
|
||||
name: str
|
||||
@@ -120,7 +124,7 @@ class ModelFactory:
|
||||
def __init__(self) -> None:
|
||||
pass
|
||||
|
||||
def new_model_from_logfile(self, path: str) -> FastInsertListStore:
|
||||
def new_model_from_logfile(self, path: "Path") -> FastInsertListStore:
|
||||
store = self.make_log_store()
|
||||
with open(path, "r") as f:
|
||||
lines = [line.split(delimiter) for line in f.read().splitlines()]
|
||||
|
||||
Reference in new issue
Block a user