8000 Remove bogus annotations from the descriptor howto guide (#112349) · python/cpython@d9fc152 · GitHub
[go: up one dir, main page]

Skip to content

Commit d9fc152

Browse files
authored
Remove bogus annotations from the descriptor howto guide (#112349)
1 parent dc0adb4 commit d9fc152

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/howto/descriptor.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -521,11 +521,11 @@ everyday Python programs.
521521
Descriptor protocol
522522
-------------------
523523

524-
``descr.__get__(self, obj, type=None) -> value``
524+
``descr.__get__(self, obj, type=None)``
525525

526-
``descr.__set__(self, obj, value) -> None``
526+
``descr.__set__(self, obj, value)``
527527

528-
``descr.__delete__(self, obj) -> None``
528+
``descr.__delete__(self, obj)``
529529

530530
That is all there is to it. Define any of these methods and an object is
531531
considered a descriptor and can override default behavior upon being looked up

0 commit comments

Comments
 (0)
0