wireup icon indicating copy to clipboard operation
wireup copied to clipboard

Assert that the type of the parameter matches what is requested.

Open maldoinc opened this issue 10 months ago • 2 comments

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.

maldoinc avatar Mar 22 '25 13:03 maldoinc

I would like to work on this issue @maldoinc

Keerthi421 avatar Mar 22 '25 14:03 Keerthi421

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.

maldoinc avatar Mar 22 '25 14:03 maldoinc

Closing for now as type checking even simple, is probably out of scope.

maldoinc avatar Nov 12 '25 19:11 maldoinc