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

Would there be a way to test these stubs out on `narwhals`?

I've had a look through (https://github.com/rok/arrow/pull/45)
I do appreciate consensus here seems to be aiming for simplicity -but I'm 
feeling like we're gonna be fighting against 
`[attr-defined]`/`[reportAttributeAccessIssue]` warnings with zero overloads 🤔 

Using the last doctest in 
[`pa.array`](https://github.com/rok/arrow/blob/d9adb91325e359e66f3352f6597b4d2c9ab3653d/python/pyarrow/__lib_pxi/array.pyi#L182-L184)
 as an example - the overloads in `pyarrow-stubs` will show `index_type` as 
being present only on `DictionaryType`.

The actual index type seems to be wrong 😅 - but we at least can know what 
attributes exist and that helps prevent hitting errors

<img width="900" alt="image" 
src="https://github.com/user-attachments/assets/ea99a68c-ab27-45aa-80fb-d8840a4bc130";
 />




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

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to