blob: f1ff173baa71e3ed01ae5a655c4103c38ef4346c [file] [log] [blame]
from typing import Optional, TypeVar, Type
T = TypeVar('T')
class Managed:
@classmethod
def current(cls: Type[T], value: Optional[T] = None, required: bool = True) -> T: ...
def __call__(self, func: T) -> T: ...
def __enter__(self: T) -> T: ...
class DefaultManaged(Managed): ...