-
Notifications
You must be signed in to change notification settings - Fork 556
fix: remove unnecessary None from dict.get() calls #956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove unnecessary None from dict.get() calls #956
Conversation
|
Can someone PTAL, its just a simple fix. |
|
Wanted to follow up on this, if someone could take a look, its just a simple fix. Thanks. |
Removes explicit 'None' default values from '.get()' calls in 'agent.py' and 'sagemaker.py'. The 'dict.get()' method defaults to 'None' already, so this change makes the code more concise and idiomatic without changing functionality.
6d27eba to
198b28a
Compare
|
Hello @dbschmigelski, can this be approved, I know it might not be of much importance rn, but its just a really simple clean up . Thank you |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
@Ratish1 Could you rebase from main |
…nup/get-none-redundant
Done |
Description
Removes explicit 'None' default values from '.get()' calls in 'agent.py' and 'sagemaker.py'.The 'dict.get()' method defaults to 'None' already, so this change makes explicitly passing None as the second argument
unnecessary.
Related Issues
N/ADocumentation PR
N/AType of Change
RefactorTesting
How have you tested the change? Verify that the changes do not break functionality or introduce warnings in consuming repositories: agents-docs, agents-tools, agents-cli
hatch run prepareChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.