From 3831b561cafc55a74d97ebde76cf528cf57b055f Mon Sep 17 00:00:00 2001 From: Tristan Simas Date: Sat, 3 Oct 2026 00:53:38 -0400 Subject: [PATCH] Expose current registered lazy/public declaration pairs (#8) --- src/objectstate/lazy_factory.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/objectstate/lazy_factory.py b/src/objectstate/lazy_factory.py index b56d062..01601d5 100644 --- a/src/objectstate/lazy_factory.py +++ b/src/objectstate/lazy_factory.py @@ -795,6 +795,11 @@ def create_class_methods() -> Dict[str, Any]: class LazyDataclassFactory: """Generic factory for creating lazy dataclasses with flexible resolution.""" + @staticmethod + def registered_type_pairs() -> tuple[tuple[Type, Type], ...]: + """Project current lazy/public declarations without constructing values.""" + return tuple(_lazy_type_registry.items()) +