1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-22 18:22:12 +01:00

Mute pylint errors in show_package_disabled_repos() that are false-positives

This commit is contained in:
Daniel Mach 2024-11-29 16:24:33 +01:00
parent 6989fb8b6f
commit aa9353f6b5

View File

@ -1434,8 +1434,8 @@ def show_package_disabled_repos(apiurl: str, prj: str, pac: str):
package_obj = obs_api.Package.from_api(apiurl, prj, pac)
result = []
for i in package_obj.build_list or []:
if i.flag == "disable":
result.append({"repo": i.repository, "arch": i.arch})
if i.flag == "disable": # pylint: disable=no-member
result.append({"repo": i.repository, "arch": i.arch}) # pylint: disable=no-member
return result