Fix minor Ruff/flake8 warnings
``` pungi/checks.py:575:17: F601 [*] Dictionary key literal `"type"` repeated pungi/phases/pkgset/pkgsets.py:617:12: E721 Do not compare types, use `isinstance()` tests/test_pkgset_source_koji.py:241:16: E721 Do not compare types, use `isinstance()` tests/test_pkgset_source_koji.py:244:16: E721 Do not compare types, use `isinstance()` tests/test_pkgset_source_koji.py:370:16: E721 Do not compare types, use `isinstance()` tests/test_pkgset_source_koji.py:374:20: E721 Do not compare types, use `isinstance()` ``` Signed-off-by: Timothée Ravier <tim@siosm.fr>
This commit is contained in:
parent
f30a8b4d15
commit
2534ddee99
3 changed files with 5 additions and 6 deletions
|
|
@ -614,7 +614,7 @@ class KojiPackageSet(PackageSetBase):
|
|||
result_srpms = []
|
||||
include_packages = set(include_packages or [])
|
||||
|
||||
if type(event) is dict:
|
||||
if isinstance(event, dict):
|
||||
event = event["id"]
|
||||
|
||||
msg = "Getting latest RPMs (tag: %s, event: %s, inherit: %s)" % (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue