GitHub user rok added a comment to the discussion: A new home for pyarrow-stubs?
> Would there be a way to test these stubs out on `narwhals`? Maybe you could copy the stubs folder and point at them with [$MYPYPATH](https://typing.python.org/en/latest/spec/distributing.html#import-resolution-ordering). > I've had a look through ([rok#45](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 🤔 I'm not there yet, I hope this is solvable. > 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 Nice! GitHub link: https://github.com/apache/arrow/discussions/45919#discussioncomment-14465705 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
