Source code for stdlibx.config._types

 1from collections.abc import Mapping
 2from typing import Any, Protocol, TypeVar
 3
 4T = TypeVar("T", covariant=True)
 5
 6
[docs] 7class Loader(Protocol):
[docs] 8 def load(self) -> Mapping[str, Any]: ...
9 10 11class SupportsRead(Protocol[T]): 12 def read(self, length: int = ..., /) -> T: ...