tl;dr: Only use *args and **kwargs in a function signature if you can't be sure what will be passed in.
In some committed code on 3.0-dev and in new Pulp3 PRs coming in, *args and **kwargs are being used regularly when they don't have to be. I think it's just a byproduct of that idiom being committed early and when others went to make code that was similar the idiom was just kept. The motivation to avoid this is to be explicit with our function signatures not implicit. It also makes signatures significantly more readable since all the args aren't hidden. If you see one of these in a PR or already committed, please change it. Please send thoughts, questions, or concerns about this recommendation. Thanks, Brian
_______________________________________________ Pulp-dev mailing list [email protected] https://www.redhat.com/mailman/listinfo/pulp-dev
