File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ def _build_parse_stack(
2020) -> List [Middleware ]:
2121 if parse_stack is not None and append_middleware is not None :
2222 raise ValueError (
23- "Provided both parse_stack and append_middleware."
24- "Only one should be provided."
25- "(append_middleware should only be used with the default parse_stack,"
23+ "Provided both parse_stack and append_middleware. "
24+ "Only one should be provided. "
25+ "(append_middleware should only be used with the default parse_stack, "
2626 "i.e., when the passed parse_stack is None.)"
2727 )
2828
@@ -50,10 +50,10 @@ def _build_unparse_stack(
5050) -> List [Middleware ]:
5151 if unparse_stack is not None and prepend_middleware is not None :
5252 raise ValueError (
53- "Provided both parse_stack and append_middleware. "
54- "Only one should be provided."
55- "(prepend_middleware should only be used with the default parse_stack, "
56- "i.e., when the passed parse_stack is None.)"
53+ "Provided both unparse_stack and prepend_middleware. "
54+ "Only one should be provided. "
55+ "(prepend_middleware should only be used with the default unparse_stack, "
56+ "i.e., when the passed unparse_stack is None.)"
5757 )
5858
5959 if unparse_stack is None :
Original file line number Diff line number Diff line change @@ -164,8 +164,8 @@ def _transform_field_value(self, name) -> List[NameParts]:
164164 if not isinstance (name , list ):
165165 raise ValueError (
166166 "Expected a list of strings, got {}. "
167- "Make sure to use `SeparateCoAuthors` middleware"
168- "before using `SplitNameParts` middleware" .format (name )
167+ "Make sure to use `SeparateCoAuthors` middleware "
168+ "before using `SplitNameParts` middleware. " .format (name )
169169 )
170170
171171 return [parse_single_name_into_parts (n ) for n in name ]
You can’t perform that action at this time.
0 commit comments