Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/pages/advanced_topics/input_hooks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ As a consequence, we will "trampoline" back and forth between two event loops.

.. note::

This will use a :class:`~asyncio.SelectorEventLoop`, not the :class:
This will use a :class:`~asyncio.SelectorEventLoop`, not the
:class:`~asyncio.ProactorEventLoop` (on Windows) due to the way the
implementation works (contributions are welcome to make that work).

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/asking_for_a_choice.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. _asking_for_input:
.. _asking_for_a_choice:

Asking for a choice
===================
Expand Down
8 changes: 4 additions & 4 deletions docs/pages/full_screen_apps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ I/O objects
Every :class:`~prompt_toolkit.application.Application` instance requires an I/O
object for input and output:

- An :class:`~prompt_toolkit.input.Input` instance, which is an abstraction
of the input stream (stdin).
- An :class:`~prompt_toolkit.output.Output` instance, which is an
abstraction of the output stream, and is called by the renderer.
- An :class:`~prompt_toolkit.input.Input` instance, which is an abstraction
of the input stream (stdin).
- An :class:`~prompt_toolkit.output.Output` instance, which is an
abstraction of the output stream, and is called by the renderer.

Both are optional and normally not needed to pass explicitly. Usually, the
default works fine.
Expand Down
2 changes: 1 addition & 1 deletion src/prompt_toolkit/application/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class Application(Generic[_AppResult]):
:param output: :class:`~prompt_toolkit.output.Output` instance. (Probably
Vt100_Output or Win32Output.)

Usage:
Usage::

app = Application(...)
app.run()
Expand Down
2 changes: 1 addition & 1 deletion src/prompt_toolkit/eventloop/inputhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def set_eventloop_with_inputhook(

class InputHookSelector(BaseSelector):
"""
Usage:
Usage::

selector = selectors.SelectSelector()
loop = asyncio.SelectorEventLoop(InputHookSelector(selector, inputhook))
Expand Down
Loading