Skip to content

Commit ec7068a

Browse files
pre-commit-ci[bot]nforro
authored andcommitted
[pre-commit.ci] pre-commit autoupdate
updates: - [github.com/psf/black: 23.10.1 → 23.11.0](psf/black@23.10.1...23.11.0) - [github.com/pre-commit/mirrors-prettier: v3.0.3 → v3.1.0](pre-commit/mirrors-prettier@v3.0.3...v3.1.0) - [github.com/pre-commit/mirrors-mypy: v1.6.1 → v1.7.1](pre-commit/mirrors-mypy@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)
1 parent 152f67c commit ec7068a

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ repos:
88
hooks:
99
- id: pyupgrade
1010
- repo: https://github.com/psf/black
11-
rev: 23.10.1
11+
rev: 23.11.0
1212
hooks:
1313
- id: black
1414
- repo: https://github.com/pre-commit/mirrors-prettier
15-
rev: v3.0.3
15+
rev: v3.1.0
1616
hooks:
1717
- id: prettier
1818
- repo: https://github.com/pre-commit/pre-commit-hooks
@@ -44,14 +44,14 @@ repos:
4444
- id: isort
4545
args: [--profile, black]
4646
- repo: https://github.com/pre-commit/mirrors-mypy
47-
rev: v1.6.1
47+
rev: v1.7.1
4848
hooks:
4949
- id: mypy
5050
args: [--show-error-codes, --ignore-missing-imports]
5151
additional_dependencies:
5252
[types-pkg_resources, types-requests, types-python-dateutil]
5353
- repo: https://github.com/teemtee/tmt.git
54-
rev: 1.28.2
54+
rev: 1.29.0
5555
hooks:
5656
- id: tmt-lint
5757
# linting of the reverse-dependency tests requires internet access

specfile/specfile.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,9 @@ def sources(
354354
try:
355355
yield Sources(
356356
tags,
357-
list(zip(*sourcelists))[1] if sourcelists else [],
357+
cast(List[Sourcelist], list(zip(*sourcelists))[1])
358+
if sourcelists
359+
else [],
358360
allow_duplicates,
359361
default_to_implicit_numbering,
360362
default_source_number_digits,
@@ -391,7 +393,9 @@ def patches(
391393
try:
392394
yield Patches(
393395
tags,
394-
list(zip(*patchlists))[1] if patchlists else [],
396+
cast(List[Sourcelist], list(zip(*patchlists))[1])
397+
if patchlists
398+
else [],
395399
allow_duplicates,
396400
default_to_implicit_numbering,
397401
default_source_number_digits,

0 commit comments

Comments
 (0)