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.
1 parent f61abe9 commit 5b98ab4Copy full SHA for 5b98ab4
1 file changed
cyclonedx/model/__init__.py
@@ -22,6 +22,7 @@
22
from a `cyclonedx.parser.BaseParser` implementation.
23
"""
24
25
+import sys
26
import re
27
from collections.abc import Generator, Iterable
28
from datetime import datetime
@@ -31,9 +32,14 @@
31
32
from typing import Any, Optional, Union
33
from urllib.parse import quote as url_quote
34
from uuid import UUID
-from warnings import deprecated, warn
35
+from warnings import warn
36
from xml.etree.ElementTree import Element as XmlElement # nosec B405
37
38
+if sys.version_info >= (3, 13):
39
+ from warnings import deprecated
40
+else:
41
+ from typing_extensions import deprecated
42
+
43
import py_serializable as serializable
44
from sortedcontainers import SortedSet
45
0 commit comments