diff --git a/CHANGELOG.rst b/CHANGELOG.rst index a9dee79..4e73a39 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,15 @@ Changelog ========= +0.14.0 (2024-02-29) +------------------- + +- Add support for getting golang purl from go import. + https://github.com/nexB/purldb/issues/259 + +- Fix the "gem" type in the README docs. + https://github.com/package-url/packageurl-python/pull/114 + 0.13.4 (2024-01-08) ------------------- diff --git a/setup.cfg b/setup.cfg index 49de794..54949ae 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = packageurl-python -version = 0.13.4 +version = 0.14.0 license = MIT description = A purl aka. Package URL parser and builder long_description = file:README.rst diff --git a/src/packageurl/__init__.py b/src/packageurl/__init__.py index b6d8a3f..170038b 100644 --- a/src/packageurl/__init__.py +++ b/src/packageurl/__init__.py @@ -84,13 +84,11 @@ def unquote(s: AnyStr) -> str: @overload -def get_quoter(encode: bool = True) -> "Callable[[AnyStr], str]": - ... +def get_quoter(encode: bool = True) -> "Callable[[AnyStr], str]": ... @overload -def get_quoter(encode: None) -> "Callable[[str], str]": - ... +def get_quoter(encode: None) -> "Callable[[str], str]": ... def get_quoter( @@ -176,22 +174,19 @@ def normalize_version( @overload def normalize_qualifiers( qualifiers: Union[AnyStr, Dict[str, str], None], encode: "Literal[True]" = ... -) -> Optional[str]: - ... +) -> Optional[str]: ... @overload def normalize_qualifiers( qualifiers: Union[AnyStr, Dict[str, str], None], encode: "Optional[Literal[False]]" -) -> Optional[Dict[str, str]]: - ... +) -> Optional[Dict[str, str]]: ... @overload def normalize_qualifiers( qualifiers: Union[AnyStr, Dict[str, str], None], encode: Optional[bool] = ... -) -> Union[str, Dict[str, str], None]: - ... +) -> Union[str, Dict[str, str], None]: ... def normalize_qualifiers( @@ -286,8 +281,7 @@ def normalize( qualifiers: Union[AnyStr, Dict[str, str], None], subpath: Optional[AnyStr], encode: "Literal[True]" = ..., -) -> Tuple[str, Optional[str], str, Optional[str], Optional[str], Optional[str]]: - ... +) -> Tuple[str, Optional[str], str, Optional[str], Optional[str], Optional[str]]: ... @overload @@ -299,8 +293,7 @@ def normalize( qualifiers: Union[AnyStr, Dict[str, str], None], subpath: Optional[AnyStr], encode: "Optional[Literal[False]]", -) -> Tuple[str, Optional[str], str, Optional[str], Optional[Dict[str, str]], Optional[str]]: - ... +) -> Tuple[str, Optional[str], str, Optional[str], Optional[Dict[str, str]], Optional[str]]: ... @overload @@ -312,8 +305,9 @@ def normalize( qualifiers: Union[AnyStr, Dict[str, str], None], subpath: Optional[AnyStr], encode: Optional[bool] = ..., -) -> Tuple[str, Optional[str], str, Optional[str], Union[str, Dict[str, str], None], Optional[str]]: - ... +) -> Tuple[ + str, Optional[str], str, Optional[str], Union[str, Dict[str, str], None], Optional[str] +]: ... def normalize(