-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARROW-8175: [Python] Setup type checking with mypy #6676
Conversation
70aae94
to
89292ca
Compare
The CI failure (C#) should be unrelated. |
Can I help landing mypy support with anything? (I noticed that generated docs/interfaces are not in a good shape, with VSCode/PyCharm they are misleading, I assume this would help) |
Things that would help:
|
So ideally a follow-up PR would generate mypy check-able code from this? Instead of the current one: |
Yes but needs to be fixed on the Cython or mypy-stubs side. |
What's the status of mypy support of cython? (not very familiar with this) |
Are you looking for something like this? python/mypy#8631 |
Maybe I was more looking for a human summary and its implications for this PR ;) But since that is an open PR: there is right now no mypy support whatsoever for cython? So that would mean that, for now, we simply can't type the part of pyarrow that is coded in cython? |
@jorisvandenbossche @xhochy next steps here? |
If we are OK with this being rather limited for now (limited to the part of pyarrow that is written in python, as I understand cython is not yet supported), then I am fine with moving forward with this. |
I think any automation we can get is useful and we can file a follow-up JIRA to check periodically for cython. Unless I'm missing something even python only support is a strict improvement? |
Yes, I think it will be a strict improvement, but it might also not be doing much validation yet, since a lot of the pyarrow objects / functions will just be typed with "Any". |
@xhochy in the interest of triaging issues, I'm going to close this for now, could you rebase/reopen when it is ready? |
No description provided.