From 73ae07080e1a391ed271ce115011e0704a0aaee1 Mon Sep 17 00:00:00 2001 From: Leonardo Covarrubias Date: Tue, 30 Jul 2024 11:25:55 -0400 Subject: [PATCH] chore: fmt --- src/pyside_app_core/ui/widgets/file_picker.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pyside_app_core/ui/widgets/file_picker.py b/src/pyside_app_core/ui/widgets/file_picker.py index 74341c8..b0b43ce 100644 --- a/src/pyside_app_core/ui/widgets/file_picker.py +++ b/src/pyside_app_core/ui/widgets/file_picker.py @@ -1,6 +1,6 @@ import os from pathlib import Path -from typing import cast +from typing import Any, cast from PySide6.QtCore import Signal, SignalInstance from PySide6.QtWidgets import QFileDialog, QHBoxLayout, QLabel, QLineEdit, QPushButton, QWidget @@ -63,7 +63,7 @@ def set_file_path(self, file_path: Path | str | None) -> None: if self._truncate_path > 0 and self._file_path is not None: parts = self._file_path.parts - shortened = parts[-min(len(parts), self._truncate_path):] + shortened = parts[-min(len(parts), self._truncate_path) :] if len(shortened) < len(parts): shortened = ("...", *shortened) self._path_edit.setText(os.sep.join(shortened)) @@ -84,7 +84,7 @@ def setReadOnly(self, val: bool = True) -> None: # noqa: FBT002 self._browse_btn.setHidden(val) def _on_browse_btn_clicked(self) -> None: - kwargs = { + kwargs: dict[str, Any] = { "caption": self._browse_config.caption, } if self._browse_config.starting_directory: