Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
=========

Unreleased
----------

- Fix type hint for ``BasePurlType.allowed_qualifiers``
https://github.com/package-url/packageurl-python/pull/213

0.17.6 (2025-11-24)
-------------------

Expand Down
4 changes: 3 additions & 1 deletion src/packageurl/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
Validate each type according to the PURL spec type definitions
"""

from typing import Set


class BasePurlType:
"""
Expand All @@ -50,7 +52,7 @@ class BasePurlType:
namespace_requirement: str
""""States if this namespace is required, optional, or prohibited."""

allowed_qualifiers: dict = {"repository_url", "arch"}
allowed_qualifiers: Set[str] = {"repository_url", "arch"}
"""Set of allowed qualifier keys for this PURL type."""

namespace_case_sensitive: bool = True
Expand Down
Loading