GitHub user MarcoGorelli added a comment to the discussion: A new home for 
pyarrow-stubs?

Thanks all for the discussion!

If I may add a further perspective, as someone building on PyArrow:
- I find it extremely useful to know whether a method will return `pa.Array` or 
`pa.ChunkedArray` or `np.ndarray` or `pd.Series` or `pd.Index`. This has helped 
avoid bugs
- I've never found it useful to narrow those types down further to the data 
type level, if anything it's usually fairly noisy. As @pitrou said, you often 
don't know the types anyway and so end up either having them as `Any` or 
scattering `# type: ignore` / `Incomplete` around

I'd find it extremely useful to have simple type annotations from PyArrow, and 
if the myriad of overloads necessary to narrow down the types are left out due 
to size and maintenance concerns, I wouldn't personally see that as a loss

GitHub link: 
https://github.com/apache/arrow/discussions/45919#discussioncomment-14297417

----
This is an automatically sent email for user@arrow.apache.org.
To unsubscribe, please send an email to: user-unsubscr...@arrow.apache.org

Reply via email to