1
1
from .artist import Artist
2
- from .axes ._base import coords_type
3
2
from .backend_bases import RendererBase
4
3
from .font_manager import FontProperties
5
4
from .offsetbox import DraggableAnnotation
@@ -17,7 +16,7 @@ from .transforms import (
17
16
18
17
from collections .abc import Callable , Iterable
19
18
from typing import Any , Literal
20
- from .typing import ColorType
19
+ from .typing import ColorType , CoordsType
21
20
22
21
class Text (Artist ):
23
22
zorder : float
@@ -121,11 +120,11 @@ class OffsetFrom:
121
120
122
121
class _AnnotationBase :
123
122
xy : tuple [float , float ]
124
- xycoords : coords_type
123
+ xycoords : CoordsType
125
124
def __init__ (
126
125
self ,
127
126
xy ,
128
- xycoords : coords_type = ...,
127
+ xycoords : CoordsType = ...,
129
128
annotation_clip : bool | None = ...,
130
129
) -> None : ...
131
130
def set_annotation_clip (self , b : bool | None ) -> None : ...
@@ -142,40 +141,40 @@ class Annotation(Text, _AnnotationBase):
142
141
text : str ,
143
142
xy : tuple [float , float ],
144
143
xytext : tuple [float , float ] | None = ...,
145
- xycoords : coords_type = ...,
146
- textcoords : coords_type | None = ...,
144
+ xycoords : CoordsType = ...,
145
+ textcoords : CoordsType | None = ...,
147
146
arrowprops : dict [str , Any ] | None = ...,
148
147
annotation_clip : bool | None = ...,
149
148
** kwargs
150
149
) -> None : ...
151
150
@property
152
151
def xycoords (
153
152
self ,
154
- ) -> coords_type : ...
153
+ ) -> CoordsType : ...
155
154
@xycoords .setter
156
155
def xycoords (
157
156
self ,
158
- xycoords : coords_type ,
157
+ xycoords : CoordsType ,
159
158
) -> None : ...
160
159
@property
161
160
def xyann (self ) -> tuple [float , float ]: ...
162
161
@xyann .setter
163
162
def xyann (self , xytext : tuple [float , float ]) -> None : ...
164
163
def get_anncoords (
165
164
self ,
166
- ) -> coords_type : ...
165
+ ) -> CoordsType : ...
167
166
def set_anncoords (
168
167
self ,
169
- coords : coords_type ,
168
+ coords : CoordsType ,
170
169
) -> None : ...
171
170
@property
172
171
def anncoords (
173
172
self ,
174
- ) -> coords_type : ...
173
+ ) -> CoordsType : ...
175
174
@anncoords .setter
176
175
def anncoords (
177
176
self ,
178
- coords : coords_type ,
177
+ coords : CoordsType ,
179
178
) -> None : ...
180
179
def update_positions (self , renderer : RendererBase ) -> None : ...
181
180
# Drops `dpi` parameter from superclass
0 commit comments