types
Classes:
-
InjectionError
–An error raised when an injection fails.
-
SolutionError
–An error raised when a solution fails.
Attributes:
-
AnyContextManagerCallable
–A callable that returns any kind of context manager.
-
AsyncContextManagerCallable
–A callable that returns an async context manager.
-
AsyncIteratorCallable
–A callable that returns an async iterator.
-
ContextManagerCallable
–A callable that returns a context manager.
-
Hint
–A type hint.
-
HintDict
–A dictionary of parameter or attribute names to their type.
-
HintMap
–A mapping of parameter or attribute names to their type.
-
HintSeq
–A sequence of types.
-
InferHint
–A callable that infers a type hint.
-
IteratorCallable
–A callable that returns an iterator.
AnyContextManagerCallable
module-attribute
AnyContextManagerCallable = Callable[
P,
AbstractContextManager[R]
| AbstractAsyncContextManager[R],
]
A callable that returns any kind of context manager.
AsyncContextManagerCallable
module-attribute
AsyncContextManagerCallable = Callable[
P, AbstractAsyncContextManager[R]
]
A callable that returns an async context manager.
AsyncIteratorCallable
module-attribute
AsyncIteratorCallable = Callable[P, AsyncIterator[R]]
A callable that returns an async iterator.
ContextManagerCallable
module-attribute
ContextManagerCallable = Callable[
P, AbstractContextManager[R]
]
A callable that returns a context manager.
HintDict
module-attribute
A dictionary of parameter or attribute names to their type.
HintMap
module-attribute
A mapping of parameter or attribute names to their type.
IteratorCallable
module-attribute
A callable that returns an iterator.
InjectionError
Bases: RuntimeError
An error raised when an injection fails.
SolutionError
Bases: RuntimeError
An error raised when a solution fails.