Improve type annotations, add support for mypy --strict, internally and for external packages (#2547)

This commit is contained in:
Sebastián Ramírez
2020-12-20 19:50:00 +01:00
committed by GitHub
parent 4fdcdf341c
commit fdb6c9ccc5
43 changed files with 314 additions and 244 deletions

View File

@@ -10,7 +10,7 @@ app = FastAPI()
class Item(BaseModel):
name: str
age: condecimal(gt=Decimal(0.0))
age: condecimal(gt=Decimal(0.0)) # type: ignore
@app.post("/items/")