mirror of
https://github.com/fastapi/fastapi.git
synced 2026-05-18 13:27:45 -04:00
✨ Improve type annotations, add support for mypy --strict, internally and for external packages (#2547)
This commit is contained in:
committed by
GitHub
parent
4fdcdf341c
commit
fdb6c9ccc5
@@ -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/")
|
||||
|
||||
Reference in New Issue
Block a user