-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Improve error messages around schema #270
Comments
To add to this, missing type annotations also give an unhelpful error: def clip(df: pd.DataFrame):
df['value'] = df['value'].clip(1,2)
return df Gives: FugueInterfacelessError: ('<function clip at 0x7fe34365c710> is not a valid transformer', FugueInterfacelessError("* can't be used on cotransformer output schema")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
When creating a
transformer
, the error message for invalid annotations is currently very vague. The following example:produces an error like:
Describe the solution you'd like
Instead, I think this error should say something like:
"Detected type "List[List]". The valid type annotations are: ...."
The text was updated successfully, but these errors were encountered: