Neoteroi / rodi

Implementation of dependency injection for Python 3
MIT License
179 stars 17 forks source link

Cannot resolve parameters in Python <=3.9 when using future annotations #27

Closed RobertoPrevato closed 1 year ago

RobertoPrevato commented 1 year ago

When using

from __future__ import annotations

and 

Example | None

neoteroi.di.CannotResolveParameterException: Unable to resolve parameter 'foo' when resolving '...'

RobertoPrevato commented 1 year ago

Investigated, nothing to do. Older versions of Python have issues with the new syntax "T | None".