Skip to content

Usage of containers.override decorator #301

@JarnoRFB

Description

@JarnoRFB

Hi,
I think in previous versions is was possible to do something like:

containers.override(BaseContainer):
class OverrideContainer: ....

Afterwards

c = BaseContainer()

would contain all the overrides.
However, the typing now complains that containers.override wants a Container instance and not a class. Has overriding containers on the class level been deprecated, as it also seems to have been removed from the documentation?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions