We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc2bcc7 commit 371bff5Copy full SHA for 371bff5
1 file changed
Doc/whatsnew/3.15.rst
@@ -748,6 +748,13 @@ functools
748
if it wraps a regular method and is called as a class attribute.
749
(Contributed by Bartosz Sławecki in :gh:`143535`.)
750
751
+* When registering a callable or descriptor to :func:`functools.singledispatch`
752
+ or :func:`functools.singledispatchmethod` via a type annotation,
753
+ it is now validated that the first non-*self* or non-*cls* parameter is used.
754
+ Previously, a callable could be registered based on its return type
755
+ annotation or an irrelevant parameter type annotation.
756
+ (Contributed by Bartosz Sławecki in :gh:`84644`.)
757
+
758
759
hashlib
760
-------
0 commit comments