Skip to content

gh-153903: wrap_dll_function: copy doc, etc from wrapped stub#154495

Open
WardBrian wants to merge 1 commit into
python:mainfrom
WardBrian:wrap_dll_function-doc
Open

gh-153903: wrap_dll_function: copy doc, etc from wrapped stub#154495
WardBrian wants to merge 1 commit into
python:mainfrom
WardBrian:wrap_dll_function-doc

Conversation

@WardBrian

@WardBrian WardBrian commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Discussed #153903 (comment), it is a nice quality of life feature if docstrings from the user-written stub are also copied over.

This calls functools.update_wrapper, similar to the ctypes.util.struct decorator that calls functools.wraps

cc @ZeroIntensity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant