Skip to content

Commit 444425c

Browse files
committed
Rewrite the news entry using precise language
1 parent 7c1bcea commit 444425c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
:func:`functools.singledispatch` and :func:`functools.singledispatchmethod`
2-
no longer mistakenly honor a misplaced annotation (e.g. the return type)
3-
as a type of the argument dispatched. Contributed by Bartosz Sławecki.
2+
now require callables to be correctly annotated if registering without a type explicitly
3+
specified in the decorator. The first user-specified positional parameter of a callable
4+
must always be annotated. Before, a callable could be registered based on its return type
5+
annotation or based on an irrelevant parameter type annotation. Contributed by Bartosz Sławecki.

0 commit comments

Comments
 (0)