From c1f98637cef8a2a11d88af475110d7f728f6fa92 Mon Sep 17 00:00:00 2001 From: Nathan McDougall Date: Sat, 12 Aug 2023 09:30:29 +1200 Subject: [PATCH] Very minor reworking of error message (#1304) Signed-off-by: Nathan McDougall --- pandera/api/pyspark/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandera/api/pyspark/model.py b/pandera/api/pyspark/model.py index 0aa4049ff..447c2ad9c 100644 --- a/pandera/api/pyspark/model.py +++ b/pandera/api/pyspark/model.py @@ -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)