Skip to content

gh-89519: Emit a warning when classmethod() wraps a non-callable descriptor - #92426

Closed
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:warn-classmethod-wraps-descriptor
Closed

serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:warn-classmethod-wraps-descriptor

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

No description provided.

@serhiy-storchaka serhiy-storchaka added the type-feature A feature request or enhancement label May 7, 2022
@rhettinger

Copy link
Copy Markdown
Contributor

I'm thinking that this should be a DeprecationWarning rather that a FutureWarning.

@serhiy-storchaka

Copy link
Copy Markdown
Member Author

It is a FutureWarning because in the future the behavior will be silently changed instead of be an error. This is for what FutureWarning was introduced.

@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 11, 2026
@ambv

ambv commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Rebase review found this PR obsolete: the classmethod descriptor chaining it warns about was removed in 3.13 by gh-110163 (7f9a99e); rebasing would resurrect deliberately deleted code and tests. Closing to cull the number of open pull requests. Do not reopen this pull request without getting a go-ahead from a triager or core developer.

@ambv ambv closed this Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review stale Stale PR or inactive for long period of time. type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants