Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@savente93
Copy link
Contributor

Fixes #412

As per the spec, int keys are allowed but should be treated as strings, therefore, we just cast it to a string if it isn't one.

@savente93 savente93 changed the title Fix: accept ints as keys (interpret them as strings) Fix: reject single keys that aren't strings Jun 3, 2025
@frostming frostming merged commit df4afc6 into python-poetry:master Jun 5, 2025
25 checks passed
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.

Unable to use setdefault or add with int

2 participants