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

Fix type_hooks handling for dictionary keys #277

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

NikitaTolpikin
Copy link

@NikitaTolpikin NikitaTolpikin commented Feb 4, 2025

Hi!

Found a bug in your lib while migrating to a newer version. In version 1.6.0, type_hooks were applied to both dictionary keys and values. However, after upgrading to version 1.9.1, I noticed that type_hooks are no longer applied to dictionary keys, only to values.

This PR restores the previous behavior, ensuring that type_hooks are consistently applied to both dictionary keys and values, just like in version 1.6.0. This change should improve backward compatibility and maintain expected behavior for users relying on type_hooks.

Let me know if any adjustments or additional tests are needed!

Fixes #217 #252

@mciszczon
Copy link
Collaborator

@konradhalas Are you able to confirm this was an unintended change in behavior? Changelog does not mention it explicitly anywhere.

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.

Regression in handling type_hooks for dict keys between dacite version 1.7 and 1.8
2 participants