Open owakira opened 15 hours ago
I found the issue in sanic_ext/extensions/injection/constructor.py
:
if not isclass(annotation):
missing.append((param, annotation))
continue
The condition for list[Client]
will always be True
.
It is necessary to add a new check for built-in generics.
Created pull request https://github.com/sanic-org/sanic-ext/pull/263
Describe the bug I found an interesting bug: di doesn't work with built-in generics.
It throws the following error:
Environment (please complete the following information):