flask_accepts
flask_accepts copied to clipboard
Static typing on request.parsed_obj
Hello and thanks for this awesome integration!
Just having some issues with static / inferred typing, hoping you could shed some light:
(1) VSCode / pylance is unaware of the "parsed_obj" attribute, giving the warning: Cannot access member "parsed_obj" for type "Request"
. Is there any way forward here? A monkey patch to the request object perhaps?
(2) In my post-load for UserSchema i return a User. Is there anyway to infer the type of request.parsed_obj using this?
Cheers :)