Argument of type "list[str]" cannot be assigned to parameter "label" (pyplot.hist, etc) #5327
Unanswered
RainerFaller
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Just to add. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Pylance flags label=["string", "string"] as incorrect
plt.hist([np_v, (np_v - np_dv)], bins=N_BINS, label=["np_v", "np_v - np_dv"])
Same for plt.xticks()
The code runs perfectly. Is it my fault, or how can I resolve it.
Beta Was this translation helpful? Give feedback.
All reactions