Skip to content

Commit 84f2528

Browse files
hongweipengtaleinat
authored andcommitted
Fix the description of isdatadescriptor in inspect.rst (#16645)
1 parent 73cdb0c commit 84f2528

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎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)