[Python] Better argument checking
Open
- Dominant language
- Scala
- Stars
- 1.2k
- Forks
- 199
- PR merge metrics
- No merged PRs in 30d
Description
Flint python API does't check argument types currently, this leads to bad user experience.
For instance, summarizer.linearRegression takes a arg "xcols" as a list of string, if user pass a string, it throws a confusing exception:
```
Py4JError: An error occurred while calling z:com.twosigma.huohua.timeseries.summarize.Summary.linearRegression. Trace:
py4j.Py4JException: Method linearRegression([class java.lang.String, class java.lang.String, class java.lang.String, class java.lang.Boolean]) does not exist
```
Contributor guide
Assessment
This issue has not been assessed yet.