Skip to content

Commit b03891f

Browse files
authored
Rephrase the entire news entry
1 parent cfb9194 commit b03891f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
:func:`functools.singledispatch` and :func:`functools.singledispatchmethod`
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
1+
When registering a callable to :func:`functools.singledispatch`
2+
or :func:`functools.singledispatchmethod` via a type annotation,
3+
it is now validated that the first proper positional parameter is annotated.
4+
Before, a callable could be registered based on its return type
55
annotation or based on an irrelevant parameter type annotation. Patch by Bartosz Sławecki.

0 commit comments

Comments
 (0)