We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a743120 + 1b54b64 commit dec39feCopy full SHA for dec39fe
CHANGES.rst
@@ -3,6 +3,9 @@ Version 3.0.3
3
4
Unreleased
5
6
+- ``__version__`` raises ``DeprecationWarning`` instead of ``UserWarning``.
7
+ :issue:`487`
8
+
9
10
Version 3.0.2
11
-------------
src/markupsafe/__init__.py
@@ -388,6 +388,7 @@ def __getattr__(name: str) -> t.Any:
388
"The '__version__' attribute is deprecated and will be removed in"
389
" MarkupSafe 3.1. Use feature detection, or"
390
' `importlib.metadata.version("markupsafe")`, instead.',
391
+ DeprecationWarning,
392
stacklevel=2,
393
)
394
return importlib.metadata.version("markupsafe")
0 commit comments