File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -56,11 +56,12 @@ Reference
5656 >>> is_normalized_name(" Django" )
5757 False
5858
59- .. function :: canonicalize_version(version)
59+ .. function :: canonicalize_version(version, strip_trailing_zero=True )
6060
6161 This function takes a string representing a package version (or a
6262 :class: `~packaging.version.Version ` instance), and returns the
63- normalized form of it.
63+ normalized form of it. By default, it strips trailing zeros from
64+ the release segment.
6465
6566 :param str version: The version to normalize.
6667
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ class RawMetadata(TypedDict, total=False):
167167
168168
169169def _parse_keywords (data : str ) -> list [str ]:
170- """Split a string of comma-separate keyboards into a list of keywords."""
170+ """Split a string of comma-separated keywords into a list of keywords."""
171171 return [k .strip () for k in data .split ("," )]
172172
173173
You can’t perform that action at this time.
0 commit comments