Skip to content

Commit

Permalink
Typing annotations fixed (#723)
Browse files Browse the repository at this point in the history
Co-authored-by: Vasily Zakharov <v.zakharov@wwpass.com>
  • Loading branch information
jolaf and Vasily Zakharov committed Sep 12, 2023
1 parent 0206c39 commit b509bef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/packaging/version.py
Expand Up @@ -450,7 +450,7 @@ def micro(self) -> int:


def _parse_letter_version(
letter: str, number: Union[str, bytes, SupportsInt]
letter: Optional[str], number: Union[str, bytes, SupportsInt, None]
) -> Optional[Tuple[str, int]]:

if letter:
Expand Down Expand Up @@ -488,7 +488,7 @@ def _parse_letter_version(
_local_version_separators = re.compile(r"[\._-]")


def _parse_local_version(local: str) -> Optional[LocalType]:
def _parse_local_version(local: Optional[str]) -> Optional[LocalType]:
"""
Takes a string like abc.1.twelve and turns it into ("abc", 1, "twelve").
"""
Expand Down

0 comments on commit b509bef

Please sign in to comment.