Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

stubgenc: add support for including class and property docstrings#17964

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@chadrik
Copy link
Contributor

@chadrikchadrik commentedOct 16, 2024
edited
Loading

Prior to this change passing--include-docstrings did not generate docstrings for classes or properties, only functions. This PR brings c-extensions up to parity with pure-python modules.

I used this feature to generate stubs for this project:https://github.com/LumaPictures/cg-stubs/blob/master/usd/stubs/pxr/Usd/__init__.pyi

@github-actions

This comment has been minimized.

@chadrikchadrikforce-pushed thestubgen/docstrings-for-c-modules branch from07cde23 tob229f27CompareFebruary 24, 2025 02:04
@github-actions

This comment has been minimized.

@chadrikchadrikforce-pushed thestubgen/docstrings-for-c-modules branch 2 times, most recently fromc6ca0d5 to787d5b6CompareFebruary 24, 2025 02:57
@github-actions

This comment has been minimized.

@chadrikchadrikforce-pushed thestubgen/docstrings-for-c-modules branch from787d5b6 to7a0db40CompareFebruary 24, 2025 04:41
@chadrik
Copy link
ContributorAuthor

@hamdanal@JelleZijlstra This is ready for review.

@github-actions
Copy link
Contributor

According tomypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@chadrik
Copy link
ContributorAuthor

Hi, does anyone have a moment to review this, please!

@JelleZijlstraJelleZijlstra merged commita9bb737 intopython:masterMay 20, 2025
19 checks passed
@chadrikchadrik deleted the stubgen/docstrings-for-c-modules branchNovember 2, 2025 01:42
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@JelleZijlstraJelleZijlstraJelleZijlstra approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@chadrik@JelleZijlstra@hamdanal

[8]ページ先頭

©2009-2025 Movatter.jp