Scopes¶
uzi.scopes
¶
Scope
¶
Bases: t.Generic[_T_Injector]
An isolated dependency resolution scope
for a given container.
Scopes assemble the dependency graphs of dependencies registered in their container.
Attributes:
Name | Type | Description |
---|---|---|
container |
Container
|
The container who's scope we are creating |
parent |
Scope
|
The parent scope. Defaults to None |
Parameters:
Name | Type | Description | Default |
---|---|---|---|
container |
Container
|
The container who's scope we are creating |
required |
parent |
Scope
|
The parent scope. Defaults to NullScope |
None
|
ContextLocalScope
¶
NullScope
¶
Bases: Scope[NullInjector]
A 'noop' Scope
used as the parent of root scopes.
Attributes:
Name | Type | Description |
---|---|---|
parent |
None
|
The parent scope |
graph |
NullGraph
|