Skip to content

Commit 3467266

Browse files
authored
use older typing.Set
1 parent 8c237d1 commit 3467266

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/packageurl/validate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
Validate each type according to the PURL spec type definitions
2727
"""
2828

29+
from typing import Set
2930

3031
class BasePurlType:
3132
"""
@@ -50,7 +51,7 @@ class BasePurlType:
5051
namespace_requirement: str
5152
""""States if this namespace is required, optional, or prohibited."""
5253

53-
allowed_qualifiers: set[str] = {"repository_url", "arch"}
54+
allowed_qualifiers: Set[str] = {"repository_url", "arch"}
5455
"""Set of allowed qualifier keys for this PURL type."""
5556

5657
namespace_case_sensitive: bool = True

0 commit comments

Comments
 (0)