Skip to content

Commit

Permalink
Fix typos (#648)
Browse files Browse the repository at this point in the history
Found via `codespell -S .nox,.mypy_cache`
  • Loading branch information
kianmeng committed Jan 4, 2023
1 parent 5c70ed4 commit 2067970
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/packaging/_elffile.py
Expand Up @@ -53,7 +53,7 @@ def __init__(self, f: IO[bytes]) -> None:
raise ELFInvalid(f"invalid magic: {magic!r}")

self.capacity = ident[4] # Format for program header (bitness).
self.encoding = ident[5] # Data structure encoding (endianess).
self.encoding = ident[5] # Data structure encoding (endianness).

try:
# e_fmt: Format for program header.
Expand Down
2 changes: 1 addition & 1 deletion src/packaging/_parser.py
Expand Up @@ -43,7 +43,7 @@ def serialize(self) -> str:
MarkerItem = Tuple[MarkerVar, Op, MarkerVar]
# MarkerAtom = Union[MarkerItem, List["MarkerAtom"]]
# MarkerList = List[Union["MarkerList", MarkerAtom, str]]
# mypy does not suport recursive type definition
# mypy does not support recursive type definition
# https://github.com/python/mypy/issues/731
MarkerAtom = Any
MarkerList = List[Any]
Expand Down
2 changes: 1 addition & 1 deletion src/packaging/specifiers.py
Expand Up @@ -617,7 +617,7 @@ def filter(

if self.contains(parsed_version, **kw):
# If our version is a prerelease, and we were not set to allow
# prereleases, then we'll store it for later incase nothing
# prereleases, then we'll store it for later in case nothing
# else matches this specifier.
if parsed_version.is_prerelease and not (
prereleases or self.prereleases
Expand Down

0 comments on commit 2067970

Please sign in to comment.