add None to Container._Instance typing (#3469)

This commit is contained in:
Thierry Jean
2025-12-12 08:47:22 -05:00
committed by GitHub
parent 34669f1ac7
commit bb8ab6272b

View File

@@ -29,7 +29,7 @@ class Container:
"""
_INSTANCE: ClassVar["Container"] = None
_INSTANCE: ClassVar[Optional["Container"]] = None
_LOCK: ClassVar[threading.Lock] = threading.Lock()
_MAIN_THREAD_ID: ClassVar[int] = threading.get_ident()
"""A main thread id to which get item will fallback for contexts without default"""