[Bug/TYPE]: Scatter c
Typehint does not support list of numbers when using cmap
#26936
Labels
Milestone
Bug summary
type-checking failing when using something like this:
saying that
c
has incompatible types:However, this actually IS allowed by underlying code for plotting since
c
will sample from thecmap
function.I suspect this will happen in any plotting function that allows this behavior.
Code for reproduction
Actual outcome
mypy raises error:
Expected outcome
mypy should not raise error
Additional information
No response
Operating system
No response
Matplotlib Version
3.8.0
Matplotlib Backend
No response
Python version
No response
Jupyter version
No response
Installation
None
The text was updated successfully, but these errors were encountered: