File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 11Changelog
22=========
33
4+ Unreleased
5+ ----------
6+
7+ - Fix type hint for ``BasePurlType.allowed_qualifiers ``
8+ https://github.com/package-url/packageurl-python/pull/213
9+
4100.17.6 (2025-11-24)
511-------------------
612
Original file line number Diff line number Diff line change 2626Validate each type according to the PURL spec type definitions
2727"""
2828
29+ from typing import Set
30+
2931
3032class BasePurlType :
3133 """
@@ -50,7 +52,7 @@ class BasePurlType:
5052 namespace_requirement : str
5153 """"States if this namespace is required, optional, or prohibited."""
5254
53- allowed_qualifiers : dict = {"repository_url" , "arch" }
55+ allowed_qualifiers : Set [ str ] = {"repository_url" , "arch" }
5456 """Set of allowed qualifier keys for this PURL type."""
5557
5658 namespace_case_sensitive : bool = True
You can’t perform that action at this time.
0 commit comments