hamedsh / fastapi_todo_demo Goto Github PK
View Code? Open in Web Editor NEWbasic fastapi demo todo app with authentication
basic fastapi demo todo app with authentication
When i run the commond tox ,it accous many error in raw code
The error is reported as follows:
Installing the current project: fastapi_todo (0.1)
py38 run-test: commands[1] | poetry run mypy fastapi_todo
fastapi_todo\db.py:15: error: The return type of a generator function should be "Generator" or one of its supertypes
fastapi_todo\models\usermodel.py:14: error: Need type annotation for "todos"
fastapi_todo\models\todomodel.py:13: error: Need type annotation for "owner"
fastapi_todo\crud\todo_crud.py:5: error: Module "fastapi_todo.models" does not explicitly export attribute "TodoModel"; implicit reexport disabled
fastapi_todo\crud\todo_crud.py:5: error: Module "fastapi_todo.models" does not explicitly export attribute "UserModel"; implicit reexport disabled
fastapi_todo\crud\todo_crud.py:9: error: Function is missing a return type annotation
fastapi_todo\crud\todo_crud.py:25: error: Function is missing a return type annotation
fastapi_todo\crud\todo_crud.py:39: error: Function is missing a return type annotation
fastapi_todo\migrations\env.py:16: error: Argument 1 to "fileConfig" has incompatible type "Optional[str]"; expected "Union[Union[str, bytes, PathLike[str], PathLike[bytes]], IO[str], RawConfigParser]"
fastapi_todo\migrations\env.py:32: error: Function is missing a return type annotation
fastapi_todo\migrations\env.py:32: note: Use "-> None" if function does not return a value
fastapi_todo\migrations\env.py:56: error: Function is missing a return type annotation
fastapi_todo\migrations\env.py:56: note: Use "-> None" if function does not return a value
fastapi_todo\migrations\versions\f909fe7979c6_add_hashed_password.py:15: error: Need type annotation for "branch_labels"fastapi_todo\migrations\versions\f909fe7979c6_add_hashed_password.py:16: error: Need type annotation for "depends_on"
fastapi_todo\migrations\versions\f909fe7979c6_add_hashed_password.py:19: error: Function is missing a return type annotation
fastapi_todo\migrations\versions\f909fe7979c6_add_hashed_password.py:19: note: Use "-> None" if function does not return a value
fastapi_todo\migrations\versions\f909fe7979c6_add_hashed_password.py:25: error: Function is missing a return type annotation
fastapi_todo\migrations\versions\f909fe7979c6_add_hashed_password.py:25: note: Use "-> None" if function does not return a value
fastapi_todo\migrations\versions\37acefc6575e_initial.py:14: error: Need type annotation for "down_revision"
fastapi_todo\migrations\versions\37acefc6575e_initial.py:15: error: Need type annotation for "branch_labels"
fastapi_todo\migrations\versions\37acefc6575e_initial.py:16: error: Need type annotation for "depends_on"
fastapi_todo\migrations\versions\37acefc6575e_initial.py:19: error: Function is missing a return type annotation
fastapi_todo\migrations\versions\37acefc6575e_initial.py:19: note: Use "-> None" if function does not return a value
fastapi_todo\migrations\versions\37acefc6575e_initial.py:42: error: Function is missing a return type annotation
fastapi_todo\migrations\versions\37acefc6575e_initial.py:42: note: Use "-> None" if function does not return a value
fastapi_todo\utils\security.py:6: error: Skipping analyzing "passlib.context": found module but no type hints or library stubs
fastapi_todo\utils\security.py:8: error: Skipping analyzing "jose": found module but no type hints or library stubs
fastapi_todo\utils\security.py:11: error: Module "fastapi_todo.models" does not explicitly export attribute "UserModel"; implicit reexport disabled
fastapi_todo\utils\security.py:38: error: Function is missing a return type annotation
fastapi_todo\crud\user_crud.py:5: error: Skipping analyzing "jose": found module but no type hints or library stubs
fastapi_todo\crud\user_crud.py:5: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
fastapi_todo\crud\user_crud.py:12: error: Module "fastapi_todo.models" does not explicitly export attribute "UserModel"; implicit reexport disabled
fastapi_todo\crud\user_crud.py:46: error: Incompatible default for argument "token" (default has type "Depends", argument has type "str")
fastapi_todo\crud\user_crud.py:46: error: Incompatible default for argument "db" (default has type "Depends", argument has type "Session")
fastapi_todo\crud\user_crud.py:60: error: Argument "email" to "get_user_by_email" has incompatible type "Optional[str]"; expected "str"
fastapi_todo\views\user_views.py:14: error: Module "fastapi_todo.models" does not explicitly export attribute "UserModel"; implicit reexport disabled
fastapi_todo\views\user_views.py:25: error: Function is missing a return type annotation
fastapi_todo\views\user_views.py:25: error: Incompatible default for argument "db" (default has type "Depends", argument has type "Session")
fastapi_todo\views\user_views.py:31: error: Incompatible default for argument "db" (default has type "Depends", argument has type "Session")
fastapi_todo\views\user_views.py:36: error: Incompatible return value type (got "Tuple[Dict[str, str], int]", expected "UserSchema")
fastapi_todo\views\user_views.py:40: error: Function is missing a return type annotation
fastapi_todo\views\user_views.py:40: error: Incompatible default for argument "db" (default has type "Depends", argument has type "Session")
fastapi_todo\views\user_views.py:52: error: Function is missing a return type annotation
fastapi_todo\views\user_views.py:53: error: Incompatible default for argument "db" (default has type "Depends", argument has type "Session")
fastapi_todo\views\user_views.py:54: error: Incompatible default for argument "form_data" (default has type "Depends", argument has type "OAuth2PasswordRequestForm")
fastapi_todo\views\user_views.py:65: error: Item "bool" of "Union[bool, Any]" has no attribute "email"
fastapi_todo\views\user_views.py:71: error: Name "get_current_user" already defined (possibly by an import)
fastapi_todo\views\user_views.py:72: error: Function is missing a return type annotation
fastapi_todo\views\todo_views.py:10: error: Module "fastapi_todo.models" does not explicitly export attribute "UserModel"; implicit reexport disabled
fastapi_todo\views\todo_views.py:17: error: Function is missing a return type annotation
fastapi_todo\views\todo_views.py:17: error: Incompatible default for argument "db" (default has type "Depends", argument has type "Session")
fastapi_todo\views\todo_views.py:23: error: Function is missing a return type annotation
fastapi_todo\views\todo_views.py:25: error: Incompatible default for argument "db" (default has type "Depends", argument has type "Session")
fastapi_todo\views\todo_views.py:31: error: Argument 3 to "add_todo" has incompatible type "TodoBaseSchema"; expected "TodoSchema"
fastapi_todo\views\todo_views.py:38: error: Function is missing a return type annotation
fastapi_todo\views\todo_views.py:40: error: Incompatible default for argument "db" (default has type "Depends", argument has type "Session")
fastapi_todo\views\todo_views.py:52: error: Function is missing a return type annotation
fastapi_todo\views\todo_views.py:54: error: Incompatible default for argument "db" (default has type "Depends", argument has type "Session")
Found 52 errors in 11 files (checked 21 source files)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.