Skip to content

Commit

Permalink
Fix typos (#132)
Browse files Browse the repository at this point in the history
Found via `codespell`
  • Loading branch information
kianmeng authored Dec 30, 2022
1 parent 6af81d9 commit b1e95fd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyright/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _should_warn_version(version: str, args: Tuple[object]) -> bool:
# PYRIGHT_PYTHON_FORCE_VERSION to the new pyright version.
# This should rarely happen as we make new releases very frequently after
# pyright does. Also in order to correctly compare versions we would need an additional
# depdency. As such this is an acceptable bug.
# dependency. As such this is an acceptable bug.
latest = get_latest_version()
return latest is not None and latest != version

Expand Down
2 changes: 1 addition & 1 deletion pyright/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def _update_path_env(
if env is None:
env = dict(os.environ)

log.debug('Attempting to preprend %s to the PATH', target_bin)
log.debug('Attempting to prepend %s to the PATH', target_bin)
assert target_bin.exists(), f'Target directory {target_bin} does not exist'

path = env.get('PATH', '') or os.environ.get('PATH', '')
Expand Down
2 changes: 1 addition & 1 deletion pyright/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Binary(NamedTuple):


# we have to define twice to support runtime type checking
# on python < 3.7 as typing.get_args is not availabe
# on python < 3.7 as typing.get_args is not available
Target = Literal['node', 'npm', 'npx']
_TARGETS = {'node', 'npm', 'npx'}

Expand Down
2 changes: 1 addition & 1 deletion tests/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ENV DOCKER_TARGETARCH=${TARGETARCH}

# TODO: Using the slim variant is a bit hackier. Better to
# cat and grep /etc/*release*. Also, the [[ ]] command
# is a bash thing so thats why we subshell for the test
# is a bash thing so that's why we subshell for the test
RUN \
if [[ $OS_DISTRO =~ alpine ]]; then \
adduser -u ${PYRIGHT_USER_ID} -D pyright; \
Expand Down

0 comments on commit b1e95fd

Please sign in to comment.