Skip to content
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

Add fallback parameter to QueryParams and CLIArgs .get() method #3479

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

devin-ai-integration[bot]
Copy link
Contributor

This PR adds dictionary-like functionality to the .get() method in QueryParams and CLIArgs classes by implementing a fallback parameter using @overload typing.

Changes:

  • Add @overload typing for .get() method in both QueryParams and CLIArgs classes
  • Implement fallback parameter functionality similar to dict.get()
  • Add comprehensive tests for fallback parameter behavior
  • Update method documentation with new parameter details

Link to Devin run: https://app.devin.ai/sessions/afb53f752eea44caac2af4c90d61b342

- Add @overload typing for .get() method in both classes
- Implement fallback parameter functionality
- Add tests for fallback parameter behavior
- Update method documentation

Co-Authored-By: Myles Scolnick <[email protected]>
Copy link

vercel bot commented Jan 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 17, 2025 4:15pm
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 17, 2025 4:15pm

Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Co-Authored-By: Myles Scolnick <[email protected]>
@mscolnick mscolnick merged commit 03bc4b1 into main Jan 17, 2025
33 of 34 checks passed
@mscolnick mscolnick deleted the devin/1737129757-add-params-get-overload branch January 17, 2025 16:53
Copy link

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.10.14-dev29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant