mirror of
https://github.com/aclist/dztui.git
synced 2026-11-06 18:10:58 +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
@@ -14,6 +14,7 @@ gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk, GLib, Gdk, GObject, Pango # noqa E402
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from pathlib import Path
|
||||
from dzgui.controllers.mc import Controller
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@@ -49,7 +50,7 @@ class LogTreeView(ContextMixin, TreeView):
|
||||
self.connect("button-press-event", self._on_log_buttonpress)
|
||||
self.connect("key-press-event", self._on_log_keypress)
|
||||
|
||||
def populate_log(self, filepath: str) -> None:
|
||||
def populate_log(self, filepath: "Path") -> None:
|
||||
model = ModelFactory().new_model_from_logfile(filepath)
|
||||
_filter = model.filter_new()
|
||||
_filter.set_visible_func(self._filter_rows)
|
||||
|
||||
Reference in new issue
Block a user