Skip to content

Commit 0b634df

Browse files
Fix the description of isdatadescriptor in inspect.rst (GH-16645)
(cherry picked from commit 84f2528) Co-authored-by: HongWeipeng <[email protected]>
1 parent a4be5aa commit 0b634df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/inspect.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ attributes:
427427

428428
Return ``True`` if the object is a data descriptor.
429429

430-
Data descriptors have both a :attr:`~object.__get__` and a :attr:`~object.__set__` method.
430+
Data descriptors have a :attr:`~object.__set__` or a :attr:`~object.__delete__` method.
431431
Examples are properties (defined in Python), getsets, and members. The
432432
latter two are defined in C and there are more specific tests available for
433433
those types, which is robust across Python implementations. Typically, data

0 commit comments

Comments
 (0)