Skip to content

Commit 569844f

Browse files
committed
+1
1 parent 06c7183 commit 569844f

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

‎Doc/library/inspect.rst‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ attributes (see :ref:`import-mod-attrs` for module attributes):
371371
Add ``aga_gen`` attribute to the awaitables returned by the ``asend()``,
372372
``athrow()`` and ``aclose()`` methods of async generators.
373373

374-
.. function:: getmembers(object[, predicate])
374+
.. function:: getmembers(object, predicate=None)
375375

376376
Return all the members of an object in a list of ``(name, value)``
377377
pairs sorted by name. If the optional *predicate* argument—which will be
@@ -385,7 +385,7 @@ attributes (see :ref:`import-mod-attrs` for module attributes):
385385
listed in the metaclass' custom :meth:`~object.__dir__`.
386386

387387

388-
.. function:: getmembers_static(object[, predicate])
388+
.. function:: getmembers_static(object, predicate=None)
389389

390390
Return all the members of an object in a list of ``(name, value)``
391391
pairs sorted by name without triggering dynamic lookup via the descriptor
@@ -487,9 +487,9 @@ attributes (see :ref:`import-mod-attrs` for module attributes):
487487
.. versionadded:: 3.14
488488

489489

490-
.. function:: isgeneratorfunction(object)
490+
.. function:: isgeneratorfunction(obj)
491491

492-
Return ``True`` if the object is a Python generator function.
492+
Return ``True`` if the obj is a Python generator function.
493493

494494
It also returns ``True`` for bound methods created from Python generator functions
495495
(see :ref:`typesmethods` for more information).
@@ -511,9 +511,9 @@ attributes (see :ref:`import-mod-attrs` for module attributes):
511511
Return ``True`` if the object is a generator.
512512

513513

514-
.. function:: iscoroutinefunction(object)
514+
.. function:: iscoroutinefunction(obj)
515515

516-
Return ``True`` if the object is a :term:`coroutine function` (a function
516+
Return ``True`` if the obj is a :term:`coroutine function` (a function
517517
defined with an :keyword:`async def` syntax), a :func:`functools.partial`
518518
wrapping a :term:`coroutine function`, or a sync function marked with
519519
:func:`markcoroutinefunction`.
@@ -583,9 +583,9 @@ attributes (see :ref:`import-mod-attrs` for module attributes):
583583
.. versionadded:: 3.5
584584

585585

586-
.. function:: isasyncgenfunction(object)
586+
.. function:: isasyncgenfunction(obj)
587587

588-
Return ``True`` if the object is an :term:`asynchronous generator` function,
588+
Return ``True`` if the obj is an :term:`asynchronous generator` function,
589589
for example:
590590

591591
.. doctest::
@@ -1186,7 +1186,7 @@ function.
11861186
to ``None`` if their ``kind`` was set to ``POSITIONAL_ONLY``.
11871187
This is no longer permitted.
11881188

1189-
.. class:: BoundArguments
1189+
.. class:: BoundArguments(signature, arguments)
11901190

11911191
Result of a :meth:`Signature.bind` or :meth:`Signature.bind_partial` call.
11921192
Holds the mapping of arguments to the function's parameters.
@@ -1469,7 +1469,7 @@ Some of the following functions return
14691469
tuple-like operations on all attributes except ``positions``. This behavior
14701470
is considered deprecated and may be removed in the future.
14711471

1472-
.. class:: FrameInfo
1472+
.. class:: FrameInfo(frame, filename, lineno, function, code_context, index, *, positions=None)
14731473

14741474
.. attribute:: frame
14751475

@@ -1512,7 +1512,7 @@ is considered deprecated and may be removed in the future.
15121512
(that is backwards compatible with the previous :term:`named tuple`).
15131513

15141514

1515-
.. class:: Traceback
1515+
.. class:: Traceback(filename, lineno, function, code_context, index, *, positions=None)
15161516

15171517
.. attribute:: filename
15181518

0 commit comments

Comments
 (0)