Skip to content
Snippets Groups Projects
Verified Commit b1a00123 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

WIP: Better diff in case of different types.

parent 64f211c2
No related branches found
No related tags found
1 merge request!185High level API serialization
Pipeline #58807 passed
...@@ -291,6 +291,7 @@ def compare_entities(entity0: Optional[Entity] = None, ...@@ -291,6 +291,7 @@ def compare_entities(entity0: Optional[Entity] = None,
if entity0 is entity1: if entity0 is entity1:
return diff return diff
# FIXME Why not simply return a diff which says that the types are different?g
if type(entity0) is not type(entity1): if type(entity0) is not type(entity1):
raise ValueError( raise ValueError(
"Comparison of different Entity types is not supported.") "Comparison of different Entity types is not supported.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment