Since I upgraded to 0.44.4, I am seeing missing leading letters of some of the lines of suggested code. For example:
from datetime import datetime
rom typing import List
rom pydantic import BaseModel
rom fastapi import HTTPException
class StudyResponse(BaseModel):
study_id: int
study_title: str | None
@app.get(“/studies/”, response_model=List[StudyResponse])
ef read_studies(skip: int = 0, limit: int = 100, db: Session = Depends(get_db)):
studies = db.query(database_models.Study).offset(skip).limit(limit).all()