Skip to content

Commit 9d59e7e

Browse files
Documentation updates
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
1 parent f73783d commit 9d59e7e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Doc/library/ctypes.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -708,9 +708,7 @@ Specifying function pointers using type annotations
708708

709709
@wrap_dll_function(dll_to_wrap)
710710
def function_ptr_name(arg_name: ctypes_type, ...) -> ctypes_type:
711-
"""Optional docstring."""
712-
# There should be no body
713-
pass
711+
"""Optional docstring. There should be no function body."""
714712

715713
The body of the decorated function is ignored, and any parameters that are
716714
missing type annotations are skipped. The names of the parameters are ignored

0 commit comments

Comments
 (0)