Skip to content

Conversation

ksunden
Copy link
Member

@ksunden ksunden commented Sep 18, 2023

PR summary

Closes #26808

Would maybe prefer being able to tell mypy that only the : slice is allowed, but that is value dependent, not type dependent, so not the right tool for the job.

PR checklist

@tacaswell tacaswell added this to the v3.8.1 milestone Sep 18, 2023
@tacaswell
Copy link
Member

are we backporting annotation fixes?

@ksunden
Copy link
Member Author

ksunden commented Sep 18, 2023

I'd say backport this one, and most "bug" oriented ones, I don't see a need to backport private API annotations (e.g. #26742)

@tacaswell
Copy link
Member

The doc build failures will be fixed by #26818, merging over them.

@tacaswell tacaswell merged commit e861ea2 into matplotlib:main Sep 18, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Sep 18, 2023
QuLogic added a commit that referenced this pull request Sep 19, 2023
…811-on-v3.8.x

Backport PR #26811 on branch v3.8.x (Add overload for slice to Spines.__getitem__)
@ksunden ksunden mentioned this pull request Nov 2, 2023
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: No overload variant of "__getitem__" of "Spines" matches argument type "slice" [call-overload]
3 participants