You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
current_user 's datatype seem to don't interfere as we are returning the whole user data by get_current_user .
The reason its don't care about the assigned datatype in the function is not explained in the video.
But it works fine with any datatype.
First of all, thanks for your great YouTube FastAPI lessons!!!
(https://www.youtube.com/watch?v=0sOvCWFmrtA)
This course enables me writing cool backend code of my blogsite.
I found a type errors in this code.
https://github.com/Sanjeev-Thiyagarajan/fastapi-course/blob/main/app/routers/post.py
routers/post.py
on line 19, 41, 57, 73, and 98.
A variable
current_user
's type should be models.User. (but it was declared as integer type)The text was updated successfully, but these errors were encountered: