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

gh-127750: Restore inspect and pydoc support of singledispatchmethod#130309

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

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchakaserhiy-storchaka commentedFeb 19, 2025
edited by bedevere-appbot
Loading

The code is still flawed, because it does not recognize class and static methods, and the first argument is not removed from the signature of bound methods, but at least it does not worse than in 3.13 and older.

…ethodThe code is still flawed, because it does not recognize class and staticmethods, and the first argument is not removed from the signature ofbound methods, but at least it does not worse than in 3.13 and older.
@serhiy-storchaka
Copy link
MemberAuthor

This is a follow up of#130008.

@AA-Turner, I do not know whether this is enough for Sphinx. If not, we will find other solution. Sphinx itself can use a workaround (incan_document_member()) similar to the code used forproperty, and it may even be more reliable, but we will try to not break old Sphinx.

@serhiy-storchakaserhiy-storchaka merged commit10b3205 intopython:mainFeb 20, 2025
42 checks passed
@serhiy-storchakaserhiy-storchaka deleted the pydoc-singledispatchmethod branchFebruary 20, 2025 09:08
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull requestFeb 20, 2025
…spatchmethod (pythonGH-130309)The code is still flawed, because it does not recognize class and staticmethods, and the first argument is not removed from the signature ofbound methods, but at least it does not worse than in 3.13 and older.(cherry picked from commit10b3205)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull requestFeb 20, 2025
@bedevere-app
Copy link

GH-130340 is a backport of this pull request to the3.13 branch.

serhiy-storchaka added a commit that referenced this pull requestFeb 20, 2025
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestFeb 20, 2025
…ythonGH-130309) (pythonGH-130340)(cherry picked from commit68c57d6)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>(cherry picked from commit395335d)(cherry picked from commit10b3205)
serhiy-storchaka added a commit that referenced this pull requestFeb 20, 2025
…0309) (GH-130340) (GH-130341)(cherry picked from commit68c57d6)(cherry picked from commit395335d)(cherry picked from commit10b3205)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@serhiy-storchaka

[8]ページ先頭

©2009-2025 Movatter.jp