Skip to content

Commit 9f54b19

Browse files
committed
gh-72088: include @staticmethod behavior in inspect.isasyncgenfunction notes
1 parent 6f6af4d commit 9f54b19

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Doc/library/inspect.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,11 @@ attributes (see :ref:`import-mod-attrs` for module attributes):
588588

589589
Accessing an instance method through the class (rather than an instance)
590590
returns a plain :term:`function`, not a bound method, so :func:`isasyncgenfunction`
591-
will return ``True`` in that case. See :ref:`instance-methods` in the
592-
language reference for details.
591+
will return ``True`` if it is an asynchronous generator function. See
592+
:ref:`instance-methods` in the language reference for details.
593+
594+
For a static method (:deco:`staticmethod`), this will return ``True`` if it
595+
is an asynchronous generator function.
593596

594597
.. function:: isasyncgen(object)
595598

0 commit comments

Comments
 (0)