mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-35395: fix typos in asyncio eventloop documentation (GH-10880)
Fixes `loop.add_writer` and `loop.add_signal_handler` method documentation to correctly reference the callback parameter from method signature. https://bugs.python.org/issue35395
This commit is contained in:
parent
8ca0fa9d2f
commit
1747334794
1 changed files with 2 additions and 2 deletions
|
@ -756,7 +756,7 @@ Watching file descriptors
|
|||
writing.
|
||||
|
||||
Use :func:`functools.partial` :ref:`to pass keyword arguments
|
||||
<asyncio-pass-keywords>` to *func*.
|
||||
<asyncio-pass-keywords>` to *callback*.
|
||||
|
||||
.. method:: loop.remove_writer(fd)
|
||||
|
||||
|
@ -970,7 +970,7 @@ Unix signals
|
|||
Raise :exc:`RuntimeError` if there is a problem setting up the handler.
|
||||
|
||||
Use :func:`functools.partial` :ref:`to pass keyword arguments
|
||||
<asyncio-pass-keywords>` to *func*.
|
||||
<asyncio-pass-keywords>` to *callback*.
|
||||
|
||||
.. method:: loop.remove_signal_handler(sig)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue