Skip to content

Conversation

@Ratish1
Copy link
Contributor

@Ratish1 Ratish1 commented Oct 1, 2025

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/A

Documentation PR

N/A

Type of Change

Refactor

Testing

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

  • I ran hatch run prepare

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@Ratish1 Ratish1 changed the title reafactor: remove redundant None from dict.get() calls fix: remove redundant None from dict.get() calls Oct 3, 2025
@Ratish1
Copy link
Contributor Author

Ratish1 commented Oct 8, 2025

Can someone PTAL, its just a simple fix.

@Ratish1 Ratish1 changed the title fix: remove redundant None from dict.get() calls fix: remove unnecessary None from dict.get() calls Oct 16, 2025
@Ratish1
Copy link
Contributor Author

Ratish1 commented Oct 21, 2025

Wanted to follow up on this, if someone could take a look, its just a simple fix. Thanks.

dbschmigelski
dbschmigelski previously approved these changes Oct 31, 2025
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.
@Ratish1
Copy link
Contributor Author

Ratish1 commented Dec 17, 2025

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
Copy link

codecov bot commented Dec 17, 2025

Codecov Report

❌ Patch coverage is 33.33333% with 6 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/strands/models/sagemaker.py 25.00% 0 Missing and 6 partials ⚠️

📢 Thoughts on this report? Let us know!

@JackYPCOnline
Copy link
Contributor

@Ratish1 Could you rebase from main

@Ratish1
Copy link
Contributor Author

Ratish1 commented Dec 18, 2025

@Ratish1 Could you rebase from main

Done

@dbschmigelski dbschmigelski merged commit 583b10e into strands-agents:main Dec 18, 2025
13 of 14 checks passed
@Ratish1 Ratish1 deleted the cleanup/get-none-redundant branch December 18, 2025 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants