Skip to content

fix: bad type hint on to_flat_dicts#576

Closed
sebastienraillet wants to merge 1 commit intoqlustered:devfrom
sebastienraillet:fix-bad-type-hint
Closed

fix: bad type hint on to_flat_dicts#576
sebastienraillet wants to merge 1 commit intoqlustered:devfrom
sebastienraillet:fix-bad-type-hint

Conversation

@sebastienraillet
Copy link

The previous return type of the to_flat_dicts function (List[FlatDeltaRow]) was incorrect, which generated numerous warnings when running mypy on applications using deepdiff.

This commit resolves the issue by correcting the type hint to the appropriate type.

Also, corresponding # type ignore is removed as it's now useless.

The previous return type of the to_flat_dicts function
(List[FlatDeltaRow]) was incorrect, which generated numerous warnings
when running mypy on applications using deepdiff.

This commit resolves the issue by correcting the type hint to the
appropriate type.

Also, corresponding # type ignore is removed as it's now useless.

Signed-off-by: Sébastien RAILLET <sebastien.raillet@rtone.fr>
@seperman
Copy link
Member

Hi @sebastienraillet
Thanks for making the PR and sorry it took me so long to review it.
We will be removing the ignore type comment but instead of returning a generic dict, we have introduced FlatDeltaDict type. It will be out for the next release.

@seperman seperman closed this Mar 25, 2026
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.

2 participants