From ec7068a08bb86df30303fe2419202ccae6af037d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Nov 2023 20:24:53 +0000 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.10.1 → 23.11.0](https://github.com/psf/black/compare/23.10.1...23.11.0) - [github.com/pre-commit/mirrors-prettier: v3.0.3 → v3.1.0](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.3...v3.1.0) - [github.com/pre-commit/mirrors-mypy: v1.6.1 → v1.7.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.6.1...v1.7.1) - [github.com/teemtee/tmt.git: 1.28.2 → 1.29.0](https://github.com/teemtee/tmt.git/compare/1.28.2...1.29.0) --- .pre-commit-config.yaml | 8 ++++---- specfile/specfile.py | 8 ++++++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d4a2eb9..b59f241 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,11 +8,11 @@ repos: hooks: - id: pyupgrade - repo: https://github.com/psf/black - rev: 23.10.1 + rev: 23.11.0 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.3 + rev: v3.1.0 hooks: - id: prettier - repo: https://github.com/pre-commit/pre-commit-hooks @@ -44,14 +44,14 @@ repos: - id: isort args: [--profile, black] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.6.1 + rev: v1.7.1 hooks: - id: mypy args: [--show-error-codes, --ignore-missing-imports] additional_dependencies: [types-pkg_resources, types-requests, types-python-dateutil] - repo: https://github.com/teemtee/tmt.git - rev: 1.28.2 + rev: 1.29.0 hooks: - id: tmt-lint # linting of the reverse-dependency tests requires internet access diff --git a/specfile/specfile.py b/specfile/specfile.py index e715bb8..02fb91f 100644 --- a/specfile/specfile.py +++ b/specfile/specfile.py @@ -354,7 +354,9 @@ def sources( try: yield Sources( tags, - list(zip(*sourcelists))[1] if sourcelists else [], + cast(List[Sourcelist], list(zip(*sourcelists))[1]) + if sourcelists + else [], allow_duplicates, default_to_implicit_numbering, default_source_number_digits, @@ -391,7 +393,9 @@ def patches( try: yield Patches( tags, - list(zip(*patchlists))[1] if patchlists else [], + cast(List[Sourcelist], list(zip(*patchlists))[1]) + if patchlists + else [], allow_duplicates, default_to_implicit_numbering, default_source_number_digits,