Skip to content
Merged
Changes from 3 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
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