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
Kevin Wang
10/02/2025, 8:40 PM
What do you mean by the preview?
e
Everett Kleven
10/02/2025, 8:40 PM
Just the docstring preview if you hover over a function in an IDE.
k
Kevin Wang
10/02/2025, 8:42 PM
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
Cory Grinstead
10/07/2025, 5:00 PM
@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!