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

Deprecation warning for getting MarkupSafe version #270

Open
ryanscovill opened this issue Jan 8, 2025 · 0 comments
Open

Deprecation warning for getting MarkupSafe version #270

ryanscovill opened this issue Jan 8, 2025 · 0 comments

Comments

@ryanscovill
Copy link

ryanscovill commented Jan 8, 2025

The following deprecation warning is displayed with getting the version of MarkupSafe. The __version__ attribute will be removed in MarkupSafe 3.1.

pybrake/notifier.py:394: UserWarning: The '__version__' attribute is deprecated and will be removed in MarkupSafe 3.1. Use feature detection, or `importlib.metadata.version("markupsafe")`, instead.

    if hasattr(mod, "__version__"):

This was introduced in pallets/markupsafe#402

Workaround:
The temporary monkeypatch proposed in #269 (comment) will apply here as well.

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

No branches or pull requests

1 participant