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)