Skip to content

Commit 57e01d8

Browse files
Update Misc/NEWS.d/next/Library/2025-01-17-13-38-12.gh-issue-128772.8yEVh2.rst
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
1 parent 09d4fa1 commit 57e01d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
This commit fixes an issue where help(...) wasn’t working on classes
2-
decorated with @deprecated("...") by preserving __module__ attribute
1+
Make sure the :attr:`~method.__module__` attribute is set on :meth:`~object.__new__`
2+
and :meth:`~object.__init_subclass__` when the :func:`warnings.deprecated` decorator
3+
is applied on classes.

0 commit comments

Comments
 (0)