blob: 3b2dd49ad877bcc9815c631d80ca9a01437ccebd [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): ...