Is there a canonical way of type hinting what Data...
# daft-dev
e
Is there a canonical way of type hinting what DataType an expression input for a function? The Expression arguments for the generate_text function require specific inputs and I'm not sure how to concisely present that in the preview.
👀 1
k
What do you mean by the preview?
e
Just the docstring preview if you hover over a function in an IDE.
k
Ah. We don't have a standardized way right now. But we should at least mention the acceptable data types in the docstring. I believe @Cory Grinstead is working on improving some of this, do you have any thoughts?
c
@Everett Kleven there's this PR that attempts to make the allowed dtypes much clearer https://github.com/Eventual-Inc/Daft/pull/5344. Feel free to comment on there if you have any additional feedback!
e
Awesome, super timely thanks!