Skip to content
Discussion options

You must be logged in to vote

That is a bit unfortunate.
Now the .plot attribute is correctly typed as the _PlotMethods accessor which however is not typed yet.
The problem with this accessor is that many functions are added via hook methods which does not work well with typing.

For now your only possibility is to use #type: ignore.

For the next release we should either type the accessors or add an Any type as an escape hatch to avoid these false positives.

I have opened #6949 for this problem.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zmoon
Comment options

Answer selected by zmoon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants