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,