▲ | marcyb5st 5 days ago | |
Personal experience: if you use injector[1] with NewType so that you can give your primitive types a meaning and add them to your injection stack it completely fails. For example: ```python ModelName = NewType("ModelName", str) # You bind your string within a module: binder.bind(ModelName, to=ModelName(parsed_args.model_name)) # When you need it: model_name = injector.get(ModelName) # Here it fails, saying that you need "concrete" types or something similar ``` So while it is great already it definitely still has many rough edges still. But it is to be expected from alpha releases |