From 83891978c2da5d9d68acb55c2cb8b18d8f7b4cb0 Mon Sep 17 00:00:00 2001 From: Gabriel Selzer Date: Tue, 7 Jun 2022 13:11:14 -0500 Subject: [PATCH] WIP: Pass constants to other modules --- src/scyjava/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scyjava/__init__.py b/src/scyjava/__init__.py index 8b68b100..c4b65b0d 100644 --- a/src/scyjava/__init__.py +++ b/src/scyjava/__init__.py @@ -29,7 +29,8 @@ _logger = logging.getLogger(__name__) # Set of module properties -_CONSTANTS: Dict[str, Callable] = {} +# Properties are keyed on their module NAME, with values being dictionaries of constants and their mappings. +_CONSTANTS: Dict[str, Dict[str, Callable]] = {} def constant(func: Callable[[], Any], cache=True) -> Callable[[], Any]: