-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Hi team,
Pybrake raises deprecation warnings when used with the FastAPI middleware:
pybrake/middleware/fastapi.py:1: DeprecationWarning: ExceptionMiddleware is deprecated on `starlette.exceptions`. Import it from `starlette.middleware.exceptions` instead.
from .starlette import init_pybrake
pybrake/notifier.py:394: DeprecationWarning: Accessing attr.__version__ is deprecated and will be removed in a future release. Use importlib.metadata directly to query for attrs's packaging metadata.
if hasattr(mod, "__version__"):
pybrake/notifier.py:395: DeprecationWarning: Accessing attr.__version__ is deprecated and will be removed in a future release. Use importlib.metadata directly to query for attrs's packaging metadata.
versions[name] = mod.__version__
I am using the following versions:
Python 3.11.4
pybrake = "==1.10.1"
fastapi = "==0.100.0"
starlette = "==0.27.0"
Metadata
Metadata
Assignees
Labels
No labels