Skip to content

Commit 2d4b0b0

Browse files
timgates42jonathanslenders
authored andcommitted
docs: Fix a few typos
There are small typos in: - docs/concurrency-challenges.rst - examples/ptpython_config/config.py - ptpython/completer.py - ptpython/history_browser.py - ptpython/key_bindings.py - ptpython/repl.py Fixes: - Should read `returns` rather than `retuns`. - Should read `parentheses` rather than `parethesis`. - Should read `output` rather than `ouptut`. - Should read `navigation` rather than `navigaton`. - Should read `executor` rather than `excecutor`. - Should read `depending` rather than `deponding`. Signed-off-by: Tim Gates <tim.gates@iress.com>
1 parent be972ab commit 2d4b0b0

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

docs/concurrency-challenges.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ When a normal blocking embed is used:
6767
When an awaitable embed is used, for embedding in a coroutine, but having the
6868
event loop continue:
6969
* We run the input method from the blocking embed in an asyncio executor
70-
and do an `await loop.run_in_excecutor(...)`.
70+
and do an `await loop.run_in_executor(...)`.
7171
* The "eval" happens again in the main thread.
7272
* "print" is also similar, except that the pager code (if used) runs in an
7373
executor too.

examples/ptpython_config/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def configure(repl):
5050
# Swap light/dark colors on or off
5151
repl.swap_light_and_dark = False
5252

53-
# Highlight matching parethesis.
53+
# Highlight matching parentheses.
5454
repl.highlight_matching_parenthesis = True
5555

5656
# Line wrapping. (Instead of horizontal scrolling.)

ptpython/completer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ def sort_key(name: str) -> tuple[int, str]:
599599

600600
class HidePrivateCompleter(Completer):
601601
"""
602-
Wrapper around completer that hides private fields, deponding on whether or
602+
Wrapper around completer that hides private fields, depending on whether or
603603
not public fields are shown.
604604
605605
(The reason this is implemented as a `Completer` wrapper is because this

ptpython/history_browser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ def __init__(self, python_input: PythonInput, original_document: Document) -> No
599599
Create an `Application` for the history screen.
600600
This has to be run as a sub application of `python_input`.
601601
602-
When this application runs and returns, it retuns the selected lines.
602+
When this application runs and returns, it returns the selected lines.
603603
"""
604604
self.python_input = python_input
605605

ptpython/key_bindings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def _(event: E) -> None:
159159
Behaviour of the Enter key.
160160
161161
Auto indent after newline/Enter.
162-
(When not in Vi navigaton mode, and when multiline is enabled.)
162+
(When not in Vi navigation mode, and when multiline is enabled.)
163163
"""
164164
b = event.current_buffer
165165
empty_lines_required = python_input.accept_input_on_enter or 10000

ptpython/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def _format_result_output(self, result: object) -> StyleAndTextTuples:
405405

406406
def show_result(self, result: object) -> None:
407407
"""
408-
Show __repr__ for an `eval` result and print to ouptut.
408+
Show __repr__ for an `eval` result and print to output.
409409
"""
410410
formatted_text_output = self._format_result_output(result)
411411

0 commit comments

Comments
 (0)