Source code for bridge.bootstrap.state
"""
Minimal module tracking whether global wiring has been performed to prevent duplicate initialization.
"""
_initialized = False
[docs]
def is_initialized() -> bool:
"""
Check if the registry has been initialized.
Returns
-------
bool
True if initialized, False otherwise.
"""
return _initialized
[docs]
def mark_initialized():
"""
Mark the registry as initialized.
"""
global _initialized
_initialized = True