-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
Typing Cleanup - Remove Blacklisted Items #25882
Comments
@WillAyd I've been studying a few of these files and related contributions today and was wondering if there are any catches I need to know about when fixing these mypy violations. |
Have you merged master? |
@WillAyd Yes, I'm on the latest upstream/master. |
Sorry misread comment. We’ve had a few things on one of which was simply to compat syntax to Py3 annotation For the module you mentioned we did that but haven’t focused on actually fixing the errors. If you still see some and want to submit a PR would certainly be welcome |
@WillAyd All clear then! I'll keep working on it. |
@WillAyd I've run into a few cases where we should use an old style type hint for a global variable to maintain pre-3.6 compatibility, but the appropriate hint is just too long for the line. I haven't been able to find any documented way to break a variable's type hint across lines or put it on another line. Any ideas? For example in pandas/compat/numpy/function.py:105 we want something like ARGSORT_DEFAULTS = OrderedDict() # type: OrderedDict[str, Union[int, str, None]] but that line is too long. We could replace the |
@gwrome python/mypy#4511 might be of use tldr: type alias, or backslash at end of line |
@WillAyd, I think these are ready for removal from the list above, because they're no longer in the blacklist. I've included the PR if I could find it:
|
Great - I’ve been meaning to update this so this helps a lot.
Thanks for all of the help on these!
…Sent from my iPhone
On May 2, 2019, at 5:50 AM, Gregory Rome ***@***.***> wrote:
@WillAyd, I think these are ready for removal from the list above, because they're no longer in the blacklist. I've included the PR if I could find it:
pandas.compat (#26251)
pandas.compat.numpy.function
pandas.core.accessor (#26146)
pandas.core.apply
pandas.core.arrays.* (#26065)
pandas.core.dtypes.* (#26028)
pandas.core.frame
pandas.core.generic
pandas.core.groupby.* (#26089)
pandas.core.reshape.concat (#26019)
pandas.core.reshape.tile (#26019)
pandas.core.series
pandas.core.sparse.frame
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
You’re welcome. Hoping to knock a couple more out this weekend. |
#25844 introduced a blacklist of modules in the mypy.ini config file which currently throw errors when analyzed with mypy. We would ideally be able to whittle these down (save exclusion of the test folder(s), which I think is fine).
I'm not sure there is one easy way to split it up as the degree of difficulty may vary wildly. PRs from the community to clean up one to a few of the blacklisted modules at a time would certainly be welcome!
Here's the list of modules for reference:
The text was updated successfully, but these errors were encountered: