Skip to content

Type is not checked within groups #605

Description

@dpinol

Describe the bug
If two lists contain the same values with different types, no difference will be reported.
It works fine for instance when comparing 2 with 2.0.

To Reproduce

DeepDiff([2],[2.0])
Out[4]: {}

Same behaviour with ignore_numeric_type_changes=False

Expected behavior
It should return the differences of the types. Somethin like the result of DeepDiff(2,2.0)

{'type_changes': {'root': {'old_type': int,
   'new_type': float,
   'old_value': 2,
   'new_value': 2.0}}}

OS, DeepDiff version and Python version (please complete the following information):

  • OS: Ubuntu
  • Version: 26LTS
  • Python Version: 3.14
  • DeepDiff Version: 9.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions