Skip to content

Commit

Permalink
Very minor reworking of error message (#1304)
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan McDougall <nmcdougall@tonkintaylor.co.nz>
  • Loading branch information
nathanjmcdougall authored Aug 11, 2023
1 parent c7b7afd commit c1f9863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandera/api/pyspark/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def _collect_fields(cls) -> Dict[str, Tuple[AnnotationInfo, FieldInfo]]:
if not isinstance(field, FieldInfo):
raise SchemaInitError(
f"'{field_name}' can only be assigned a 'Field', "
+ f"not a '{type(field)}.'"
+ f"not a '{type(field)}'."
)
fields[field.name] = (AnnotationInfo(annotation), field)

Expand Down

0 comments on commit c1f9863

Please sign in to comment.