-
|
With current xarray release I am now getting errors from mypy like this one What is recommended way to resolve (or get around) this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
That is a bit unfortunate. For now your only possibility is to use 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. |
Beta Was this translation helpful? Give feedback.
That is a bit unfortunate.
Now the
.plotattribute is correctly typed as the_PlotMethodsaccessor 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.