Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static typing on request.parsed_obj #93

Open
delewis13 opened this issue Oct 28, 2020 · 0 comments
Open

Static typing on request.parsed_obj #93

delewis13 opened this issue Oct 28, 2020 · 0 comments

Comments

@delewis13
Copy link

delewis13 commented Oct 28, 2020

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant