Skip to content

Commit

Permalink
Fix various typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanslenders committed Apr 12, 2023
1 parent 44f0c6e commit 135aa0e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Expand Up @@ -191,7 +191,7 @@ New features:
- Optional pager for displaying outputs that don't fit on the screen.
- Added --light-bg and --dark-bg flags to automatically optimize the brightness
of the colors according to the terminal background.
- Addd `PTPYTHON_CONFIG_HOME` for explicitely setting the config directory.
- Add `PTPYTHON_CONFIG_HOME` for explicitly setting the config directory.
- Show completion suffixes (like '(' for functions).

Fixes:
Expand Down
6 changes: 3 additions & 3 deletions ptpython/completer.py
Expand Up @@ -259,7 +259,7 @@ def get_completions(
# See: https://github.com/jonathanslenders/ptpython/issues/223
pass
except Exception:
# Supress all other Jedi exceptions.
# Suppress all other Jedi exceptions.
pass
else:
# Move function parameters to the top.
Expand Down Expand Up @@ -367,7 +367,7 @@ def __init__(
rf"""
{expression}
# Dict loopup to complete (square bracket open + start of
# Dict lookup to complete (square bracket open + start of
# string).
\[
\s* ([^\[\]]*)$
Expand All @@ -380,7 +380,7 @@ def __init__(
rf"""
{expression}
# Attribute loopup to complete (dot + varname).
# Attribute lookup to complete (dot + varname).
\.
\s* ([a-zA-Z0-9_]*)$
""",
Expand Down
4 changes: 2 additions & 2 deletions ptpython/python_input.py
Expand Up @@ -379,7 +379,7 @@ def __init__(
self.options = self._create_options()
self.selected_option_index: int = 0

#: Incremeting integer counting the current statement.
#: Incrementing integer counting the current statement.
self.current_statement_index: int = 1

# Code signatures. (This is set asynchronously after a timeout.)
Expand Down Expand Up @@ -835,7 +835,7 @@ def get_values() -> dict[str, Callable[[], bool]]:
[
simple_option(
title="Syntax highlighting",
description="Use colors for syntax highligthing",
description="Use colors for syntax highlighting",
field_name="enable_syntax_highlighting",
),
simple_option(
Expand Down
2 changes: 1 addition & 1 deletion ptpython/utils.py
Expand Up @@ -91,7 +91,7 @@ def get_jedi_script_from_document(
# Workaround Jedi issue #514: for https://github.com/davidhalter/jedi/issues/514
return None
except KeyError:
# Workaroud for a crash when the input is "u'", the start of a unicode string.
# Workaround for a crash when the input is "u'", the start of a unicode string.
return None
except Exception:
# Workaround for: https://github.com/jonathanslenders/ptpython/issues/91
Expand Down

0 comments on commit 135aa0e

Please sign in to comment.