diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fcf6faa..27a7e03 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ ci: repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.12 + rev: v0.12.3 hooks: - id: ruff args: [--fix, --unsafe-fixes] @@ -17,7 +17,7 @@ repos: - id: validate-pyproject - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.16.0 + rev: v1.17.0 hooks: - id: mypy exclude: tests|examples diff --git a/pyproject.toml b/pyproject.toml index 3b0a9ee..4582fc9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ test = [ "pint", "pytest", "pytest-cov", - "pytest-qt", + "pytest-qt==4.4.0", "numpy", "cmap", "pyconify", diff --git a/src/superqt/elidable/_eliding.py b/src/superqt/elidable/_eliding.py index 2b50848..b67ff93 100644 --- a/src/superqt/elidable/_eliding.py +++ b/src/superqt/elidable/_eliding.py @@ -70,7 +70,7 @@ class _GenericEliding: text = self._wrappedText() last_line = fm.elidedText("".join(text[nlines:]), self._elide_mode, width) # join them - return "".join(text[:nlines] + [last_line]) + return "".join([*text[:nlines], last_line]) def _wrappedText(self) -> list[str]: return _GenericEliding.wrapText(self._text, self.width(), self.font())