Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1747334

Browse files
naglismiss-islington
authored andcommitted
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
1 parent 8ca0fa9 commit 1747334

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/asyncio-eventloop.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ Watching file descriptors
756756
writing.
757757

758758
Use :func:`functools.partial` :ref:`to pass keyword arguments
759-
<asyncio-pass-keywords>` to *func*.
759+
<asyncio-pass-keywords>` to *callback*.
760760

761761
.. method:: loop.remove_writer(fd)
762762

@@ -970,7 +970,7 @@ Unix signals
970970
Raise :exc:`RuntimeError` if there is a problem setting up the handler.
971971

972972
Use :func:`functools.partial` :ref:`to pass keyword arguments
973-
<asyncio-pass-keywords>` to *func*.
973+
<asyncio-pass-keywords>` to *callback*.
974974

975975
.. method:: loop.remove_signal_handler(sig)
976976

0 commit comments

Comments
 (0)