wireup
wireup copied to clipboard
Assert that the type of the parameter matches what is requested.
The container should throw if the type of the parameter does not match that of the argument.
E.g: Annotated[str, Inject(param="foo")] is requested but foo is actually an int.
I would like to work on this issue @maldoinc
Hi. Thanks for offering to work on this. To get started: The validation code lives in the wireup.ioc.validation module. assert_dependency_exists is probably your starting point.
Closing for now as type checking even simple, is probably out of scope.