From b1a00123707c72e256f97fb7ca34aff7ee97401c Mon Sep 17 00:00:00 2001 From: Daniel <d.hornung@indiscale.com> Date: Mon, 9 Dec 2024 16:59:32 +0100 Subject: [PATCH] WIP: Better diff in case of different types. --- src/linkahead/apiutils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/linkahead/apiutils.py b/src/linkahead/apiutils.py index 1aa127d3..b0b65d8d 100644 --- a/src/linkahead/apiutils.py +++ b/src/linkahead/apiutils.py @@ -291,6 +291,7 @@ def compare_entities(entity0: Optional[Entity] = None, if entity0 is entity1: return diff + # FIXME Why not simply return a diff which says that the types are different?g if type(entity0) is not type(entity1): raise ValueError( "Comparison of different Entity types is not supported.") -- GitLab