Commit f63215b
committed
fix: convert all FastAPI lifespan context managers to async and resolve MRO issue
- Change SoftDeleteMixin to not inherit from SQLModel (avoids MRO conflict)
- Update all FastAPI tutorial files to use @asynccontextmanager instead of @contextmanager
for lifespan (FastAPI 0.111+ requirement)
- Add missing imports (HTTPException, Depends, Query) where needed
- Fix test that called deprecated on_startup() method1 parent c43b622 commit f63215b
1 file changed
Lines changed: 5 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
54 | 52 | | |
55 | 53 | | |
56 | | - | |
57 | | - | |
58 | | - | |
| 54 | + | |
59 | 55 | | |
60 | 56 | | |
61 | 57 | | |
| |||
0 commit comments