2 ms·
The way it tries to construct the return values kept getting in the way. I’d define the class, add it as the return value, I was manually instantiating the cla
by FridgeSeal 6y ago
The way it tries to construct the return values kept getting in the way.
I’d define the class, add it as the return value, I was manually instantiating the class and returning that, but for it didn’t like that and would constantly throw errors about it. I think it was PyDantic which was the root cause there.
The Depends functionality refused to inject my classes as well, but I was probably doing something wrong there...
Dropping back to Starlette was good because it gave me everything I needed and got out of my way. I’ve still got everything fully typed and passing MyPy.