Skip to content

Combine arguments of openqabot.loader.gitea.add_build_result and fix "PLR0917 too-many-position-arguments" #297

@okurz

Description

@okurz

that might be a separate commit/PR but here is a logic: I see some parameters are repeated. Maybe it could become a dataclass which will replace the set of redudant parameters.

I will have to check the code and the flow to make sure that this is applicable. however a dataclass could be used just for the cases which raise PLR0917 too-many-positional-arguments.

no blocking comment. just interested in your opinion

Originally posted by @d3flex in #252 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions