ivankorobkov / python-inject

Python dependency injection
Apache License 2.0
672 stars 77 forks source link

Autoparams fix for return type annotation #22

Closed Enforcer closed 5 years ago

Enforcer commented 5 years ago

Use inspect module for getting type annotations instead of using __annotations__. This also fixes problem when previous implementation tried to inject keyword argument using annotation for return type