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 096fc3b commit c8a5cdcCopy full SHA for c8a5cdc
Lib/functools.py
@@ -907,7 +907,8 @@ def _get_dispatch_annotation(func, param):
907
except KeyError:
908
raise TypeError(
909
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)`."
+ f"Add missing annotation to parameter {param!r} of {func.__qualname__!r} "
911
+ f"or use `@register(some_class)`."
912
) from None
913
if isinstance(ref_or_typeform, str):
914
ref_or_typeform = annotationlib.ForwardRef(ref_or_typeform, owner=func)
0 commit comments