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

Fix DeprecationWarning from FastAPI. #46

Merged
merged 1 commit into from
Jan 20, 2024
Merged

Conversation

caarmen
Copy link
Owner

@caarmen caarmen commented Jan 20, 2024

Fix this warning:

slackhealthbot/main.py:56: DeprecationWarning:
on_event is deprecated, use lifespan event handlers instead.

Read more about it in the
FastAPI docs for Lifespan Events.

Use lifespan instead of on_event.

Fix this warning:

slackhealthbot/main.py:56: 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/).

Use lifespan instead of `on_event`.
@caarmen caarmen merged commit 8a3a12d into main Jan 20, 2024
@caarmen caarmen deleted the fix-deprecation-warning branch January 20, 2024 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant