11from .artist import Artist
2- from .axes ._base import coords_type
32from .backend_bases import RendererBase
43from .font_manager import FontProperties
54from .offsetbox import DraggableAnnotation
@@ -17,7 +16,7 @@ from .transforms import (
1716
1817from collections .abc import Callable , Iterable
1918from typing import Any , Literal
20- from .typing import ColorType
19+ from .typing import ColorType , CoordsType
2120
2221class Text (Artist ):
2322 zorder : float
@@ -121,11 +120,11 @@ class OffsetFrom:
121120
122121class _AnnotationBase :
123122 xy : tuple [float , float ]
124- xycoords : coords_type
123+ xycoords : CoordsType
125124 def __init__ (
126125 self ,
127126 xy ,
128- xycoords : coords_type = ...,
127+ xycoords : CoordsType = ...,
129128 annotation_clip : bool | None = ...,
130129 ) -> None : ...
131130 def set_annotation_clip (self , b : bool | None ) -> None : ...
@@ -142,40 +141,40 @@ class Annotation(Text, _AnnotationBase):
142141 text : str ,
143142 xy : tuple [float , float ],
144143 xytext : tuple [float , float ] | None = ...,
145- xycoords : coords_type = ...,
146- textcoords : coords_type | None = ...,
144+ xycoords : CoordsType = ...,
145+ textcoords : CoordsType | None = ...,
147146 arrowprops : dict [str , Any ] | None = ...,
148147 annotation_clip : bool | None = ...,
149148 ** kwargs
150149 ) -> None : ...
151150 @property
152151 def xycoords (
153152 self ,
154- ) -> coords_type : ...
153+ ) -> CoordsType : ...
155154 @xycoords .setter
156155 def xycoords (
157156 self ,
158- xycoords : coords_type ,
157+ xycoords : CoordsType ,
159158 ) -> None : ...
160159 @property
161160 def xyann (self ) -> tuple [float , float ]: ...
162161 @xyann .setter
163162 def xyann (self , xytext : tuple [float , float ]) -> None : ...
164163 def get_anncoords (
165164 self ,
166- ) -> coords_type : ...
165+ ) -> CoordsType : ...
167166 def set_anncoords (
168167 self ,
169- coords : coords_type ,
168+ coords : CoordsType ,
170169 ) -> None : ...
171170 @property
172171 def anncoords (
173172 self ,
174- ) -> coords_type : ...
173+ ) -> CoordsType : ...
175174 @anncoords .setter
176175 def anncoords (
177176 self ,
178- coords : coords_type ,
177+ coords : CoordsType ,
179178 ) -> None : ...
180179 def update_positions (self , renderer : RendererBase ) -> None : ...
181180 # Drops `dpi` parameter from superclass
0 commit comments