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

Modified typed get and added typed pop #70

Merged
merged 2 commits into from
Apr 22, 2024
Merged

Modified typed get and added typed pop #70

merged 2 commits into from
Apr 22, 2024

Conversation

gentlegiantJGC
Copy link
Member

The exception behaviour of typed get methods was confusing.
There is now a boolean flag which switches between returning default on error and raising exceptions on error.
Added typed pop methods that behave the same as the typed gets methods but also removes the key if it exists and the type is correct.
Added tests

The exception behaviour of typed get methods was confusing.
There is now a boolean flag which switches between returning default on error and raising exceptions on error.
Added typed pop methods that behave the same as the typed gets methods but also removes the key if it exists and the type is correct.
Added tests
@gentlegiantJGC gentlegiantJGC merged commit 61b9d2e into 3.0 Apr 22, 2024
8 checks passed
@gentlegiantJGC gentlegiantJGC deleted the get-pop branch April 22, 2024 13:31
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.

None yet

1 participant