Skip to content

Commit 2067970

Browse files
authored
Fix typos (#648)
Found via `codespell -S .nox,.mypy_cache`
1 parent 5c70ed4 commit 2067970

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/packaging/_elffile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __init__(self, f: IO[bytes]) -> None:
5353
raise ELFInvalid(f"invalid magic: {magic!r}")
5454

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

5858
try:
5959
# e_fmt: Format for program header.

src/packaging/_parser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def serialize(self) -> str:
4343
MarkerItem = Tuple[MarkerVar, Op, MarkerVar]
4444
# MarkerAtom = Union[MarkerItem, List["MarkerAtom"]]
4545
# MarkerList = List[Union["MarkerList", MarkerAtom, str]]
46-
# mypy does not suport recursive type definition
46+
# mypy does not support recursive type definition
4747
# https://github.com/python/mypy/issues/731
4848
MarkerAtom = Any
4949
MarkerList = List[Any]

src/packaging/specifiers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ def filter(
617617

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

0 commit comments

Comments
 (0)