Skip to content

Use Sequence instead of List for drop #46

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 1 commit into from
Jun 28, 2022
Merged

Conversation

tmke8
Copy link
Contributor

@tmke8 tmke8 commented Jun 28, 2022

The advantage is that Sequence is covariant which allows passing in List[str], for example.

I also added self to reindex because mypy was complaining about that.

The advantage is that Sequence is covariant which allows passing in
List[str], for example.
@Dr-Irv
Copy link
Collaborator

Dr-Irv commented Jun 28, 2022

I also added self to reindex because mypy was complaining about that.

I'm really surprised that our tests didn't pick that up.

@Dr-Irv Dr-Irv merged commit 289ea88 into pandas-dev:main Jun 28, 2022
@Dr-Irv
Copy link
Collaborator

Dr-Irv commented Jun 28, 2022

Thanks @thomkeh

@tmke8 tmke8 deleted the drop-sequence branch June 28, 2022 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants