Skip to content

Fix several types related to Collections - #32461

Open
iccir wants to merge 1 commit into
matplotlib:mainfrom
iccir:fix-collection-types
Open

iccir wants to merge 1 commit into
matplotlib:mainfrom
iccir:fix-collection-types

Conversation

@iccir

@iccir iccir commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

PR summary

This PR narrows the type of several getters in collections.pyi as well as the arguments for .RendererBase.draw_path_collection and .RendererBase.draw_quad_mesh. Discovered after a lot of confusion during my nanobind experiment.

I'm not sure if the changes to collections.pyi are the right approach. We may only want to narrow the types in RendererBase.

AI Disclosure

None used.

PR quality check

  • Use an expressive title, e.g. "Fix title font property precedence"
  • New and changed code is tested
  • [/] Plotting related features are demonstrated in an example
  • [/] New features and API changes have release notes
  • [/] Documentation complies with general and docstring guidelines

This branch has not been deployed

No deployments
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.

2 participants