Skip to content

Commit c8a5cdc

Browse files
committed
Shorten error message string line
1 parent 096fc3b commit c8a5cdc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/functools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,8 @@ def _get_dispatch_annotation(func, param):
907907
except KeyError:
908908
raise TypeError(
909909
f"Invalid first argument to `register()`: {param!r}. "
910-
f"Add missing annotation to parameter {param!r} of {func.__qualname__!r} or use `@register(some_class)`."
910+
f"Add missing annotation to parameter {param!r} of {func.__qualname__!r} "
911+
f"or use `@register(some_class)`."
911912
) from None
912913
if isinstance(ref_or_typeform, str):
913914
ref_or_typeform = annotationlib.ForwardRef(ref_or_typeform, owner=func)

0 commit comments

Comments
 (0)