mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-10-11 06:17:02 +03:00
15 lines
186 B
Python
15 lines
186 B
Python
from dependency_injector import providers
|
|
|
|
|
|
class Animal:
|
|
...
|
|
|
|
|
|
class Cat(Animal):
|
|
...
|
|
|
|
|
|
provider = providers.Factory(Cat)
|
|
|
|
animal: Animal = provider(1, 2, 3, b='1', c=2, e=0.0)
|