kodemore / kink

Dependency injection container made for Python
MIT License
397 stars 25 forks source link

Fix: Protocol support #54

Closed jarey closed 5 months ago

jarey commented 7 months ago

Current behaviour

Kink current implementation fails to process classes that implement a Protocol. When a Protocol is implemented kink raises an incorrect exception about args/kwargs not matching expected ones.

Expected behaviour

Kink supports Protocols as part of the class hierarchy/interface implementation, processing dependency injection in the right way even if such elements are included as part of the class hierarchy.

Content of this PR

jose-turintech commented 6 months ago

@dkraczkowski ping in case notifications for this were lost. Thanks for your time.

dkraczkowski commented 5 months ago

@jarey I just wanted to take a moment to extend my heartfelt thanks for your contribution. Your support and effort truly made my day much better.