1- from __future__ import annotations
2-
31import abc
42import dataclasses
53import enum
@@ -869,7 +867,7 @@ def make_linear(self, data_array: xarray.DataArray) -> xarray.DataArray:
869867
870868 @cached_property # type: ignore
871869 @_requires_plot
872- def data_crs (self ) -> CRS :
870+ def data_crs (self ) -> ' CRS' :
873871 """
874872 The coordinate reference system that coordinates in this dataset are
875873 defined in.
@@ -883,7 +881,7 @@ def data_crs(self) -> CRS:
883881 @_requires_plot
884882 def plot_on_figure (
885883 self ,
886- figure : Figure ,
884+ figure : ' Figure' ,
887885 scalar : Optional [DataArrayOrName ] = None ,
888886 vector : Optional [tuple [DataArrayOrName , DataArrayOrName ]] = None ,
889887 title : Optional [str ] = None ,
@@ -963,13 +961,13 @@ def plot(self, *args: Any, **kwargs: Any) -> None:
963961 @_requires_plot
964962 def animate_on_figure (
965963 self ,
966- figure : Figure ,
964+ figure : ' Figure' ,
967965 scalar : Optional [DataArrayOrName ] = None ,
968966 vector : Optional [tuple [DataArrayOrName , DataArrayOrName ]] = None ,
969967 coordinate : Optional [DataArrayOrName ] = None ,
970968 title : Optional [Union [str , Callable [[Any ], str ]]] = None ,
971969 ** kwargs : Any ,
972- ) -> FuncAnimation :
970+ ) -> ' FuncAnimation' :
973971 """
974972 Make an animated plot of a data array.
975973
@@ -1066,7 +1064,7 @@ def make_poly_collection(
10661064 self ,
10671065 data_array : Optional [DataArrayOrName ] = None ,
10681066 ** kwargs : Any ,
1069- ) -> PolyCollection :
1067+ ) -> ' PolyCollection' :
10701068 """
10711069 Make a :class:`~matplotlib.collections.PolyCollection`
10721070 from the geometry of this :class:`~xarray.Dataset`.
@@ -1143,7 +1141,7 @@ def make_patch_collection(
11431141 self ,
11441142 data_array : Optional [DataArrayOrName ] = None ,
11451143 ** kwargs : Any ,
1146- ) -> PolyCollection :
1144+ ) -> ' PolyCollection' :
11471145 warnings .warn (
11481146 "Convention.make_patch_collection has been renamed to "
11491147 "Convention.make_poly_collection, and now returns a PolyCollection" ,
@@ -1154,11 +1152,11 @@ def make_patch_collection(
11541152 @_requires_plot
11551153 def make_quiver (
11561154 self ,
1157- axes : Axes ,
1155+ axes : ' Axes' ,
11581156 u : Optional [DataArrayOrName ] = None ,
11591157 v : Optional [DataArrayOrName ] = None ,
11601158 ** kwargs : Any ,
1161- ) -> Quiver :
1159+ ) -> ' Quiver' :
11621160 """
11631161 Make a :class:`matplotlib.quiver.Quiver` instance to plot vector data.
11641162
0 commit comments