Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Update on_event with lifespan event handler in docs #958

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ppommer
Copy link

@ppommer ppommer commented May 31, 2024

Taking care of

DeprecationWarning: 
          on_event is deprecated, use lifespan event handlers instead.
  
          Read more about it in the
          [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).

in the FastAPI and Pydantic Tutorial.

Deprecation is noted here and here.


  • Update deprecated on_event with lifespan event
  • Update tutorial text
  • Update tutorial line numbers

Copy link

📝 Docs preview for commit 79462c5 at: https://32aff99e.sqlmodel.pages.dev

@alejsdev alejsdev added the docs Improvements or additions to documentation label Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants