Allow to pass context to pyobjects renderer#68224
Conversation
|
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey. There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. |
twangboy
left a comment
There was a problem hiding this comment.
This looks great, but we need a changelog and some tests for this. Would you mind doing that?
|
Using mutable default arguments in functions is dangerous: https://docs.python-guide.org/writing/gotchas/#mutable-default-arguments |
|
@frebib makes a valid point. The article they referenced demonstrates how to better handle this scenario. The Lint Failures are related to this as well. |
|
@twangboy do I need reformat code as pipeline shows? Also, do I need to rebase changes periodically, or they will be just merged on top, if no conflicts appears? |
|
Yeah, you need to fix pre-commit/lint failures. I just did that |
|
Congratulations on your first PR being merged! 🎉 |
|
Thank you all 🤗 |
What does this PR do?
Allows to pass context to pyobjects renderer
What issues does this PR fix or reference?
Fixes #68223