[object Object]

← back to Exo

fix: Fix incorrect logic

e2a7935019dbe358cf51b78d4f3e20f7bbbe2fe2 · 2025-07-16 14:39:20 +0100 · Arbion Halili

Files touched

Diff

commit e2a7935019dbe358cf51b78d4f3e20f7bbbe2fe2
Author: Arbion Halili <99731180+ToxicPine@users.noreply.github.com>
Date:   Wed Jul 16 14:39:20 2025 +0100

    fix: Fix incorrect logic
---
 shared/types/events/registry.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shared/types/events/registry.py b/shared/types/events/registry.py
index 299b42ee..b1e8b690 100644
--- a/shared/types/events/registry.py
+++ b/shared/types/events/registry.py
@@ -85,7 +85,7 @@ def check_registry_has_all_event_types() -> None:
 def check_union_of_all_events_is_consistent_with_registry(
     registry: Mapping[EventTypes, Type[Any]], union_type: UnionType
 ) -> None:
-    type_of_each_registry_entry = set(type(event_type) for event_type in registry)
+    type_of_each_registry_entry = set(registry.values())
     type_of_each_entry_in_union = set(get_args(union_type))
     missing_from_union = type_of_each_registry_entry - type_of_each_entry_in_union
 

← 6a671908 fix: FrozenSet Related Bits  ·  back to Exo  ·  fix: Normalize Naming 038cc4cd →