ivankorobkov / python-inject

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

Syntax error in inject 5.2.0 #93

Closed mayesca closed 6 months ago

mayesca commented 6 months ago

Hi, when upgrading to inject v5.2.0 I'm encountering the following error which comes from this line

lib/python3.8/site-packages/inject/__init__.py", line 334, in _ParametersInjection
    provided_params: frozenset[str],
TypeError: 'type' object is not subscriptable

Should the type hint here be using FrozenSet from the typing package?

merwok commented 6 months ago

This is valid, but not for Python 3.8

mayesca commented 6 months ago

Oh 🤦 , thanks for the clarification.