Skip to content

TYP: change ArrayLike/AnyArrayLike alias to Union #40379

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

Merged
merged 8 commits into from
Mar 12, 2021

Conversation

simonjayhawkins
Copy link
Member

follow-on from #36092

The first commit is the change in the alias.

Although this does get rid of many of the false positives, as well as removing ignores this also results is some changes in the mypy error codes and some new errors where we might need a typevar (or more likely an overload)

The subsequent commits were an attempt to ensure that this PR only removed ignores.

The PR is starting to get a bit difficult to review imo. so I have stopped for now.

I could break off the first commit and then submit the subsequent commits as separate PRs if it makes review easier.

@simonjayhawkins simonjayhawkins added the Typing type annotations, mypy/pyright type checking label Mar 11, 2021
@Dr-Irv
Copy link
Contributor

Dr-Irv commented Mar 11, 2021

Watching progress on this so I can restart work from #39501

@jbrockmendel
Copy link
Member

LGTM

@jreback let's prioritize this to avoid merge conflict pileups

Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jreback jreback added this to the 1.3 milestone Mar 12, 2021
@jreback jreback merged commit 65abf6b into pandas-dev:master Mar 12, 2021
@simonjayhawkins simonjayhawkins deleted the make-ArrayLike-a-Union branch March 12, 2021 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants