Chore: Added type hints for sqlalchemy and checked a lot of them using mypy
There can be many errors now
This commit is contained in:
1 parent
fa6aa514bc
commit
abe99f0187
59 files changed
+803
-582
No files matched your search
@@ -11,7 +11,7 @@ fastapi = "^0.68.1"
|
||||
python-jose = {extras = ["cryptography"], version = "^3.3.0"}
|
||||
passlib = {extras = ["bcrypt"], version = "^1.7.4"}
|
||||
psycopg2-binary = "^2.9.1"
|
||||
SQLAlchemy = "^1.4.23"
|
||||
SQLAlchemy = {extras = ["mypy"], version = "^1.4.26"}
|
||||
python-multipart = "^0.0.5"
|
||||
PyJWT = "^2.1.0"
|
||||
alembic = "^1.7.1"
|
||||
@@ -31,6 +31,13 @@ mypy = "^0.910"
|
||||
requires = ["poetry-core>=1.0.0"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
|
||||
|
||||
[tool.mypy]
|
||||
warn_return_any = true
|
||||
warn_unused_configs = true
|
||||
plugins = ["sqlalchemy.ext.mypy.plugin"]
|
||||
|
||||
|
||||
[tool.isort]
|
||||
profile = "black"
|
||||
atomic = true
|
||||
|
||||
Reference in new issue
Block a user