File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Original file line number Diff line number Diff line change @@ -193,17 +193,19 @@ def _reset_visual_defaults(
193
193
194
194
def update (self , kwargs ):
195
195
# docstring inherited
196
+ ret = []
196
197
kwargs = cbook .normalize_kwargs (kwargs , Text )
197
198
sentinel = object () # bbox can be None, so use another sentinel.
198
199
# Update fontproperties first, as it has lowest priority.
199
200
fontproperties = kwargs .pop ("fontproperties" , sentinel )
200
201
if fontproperties is not sentinel :
201
- self .set_fontproperties (fontproperties )
202
+ ret . append ( self .set_fontproperties (fontproperties ) )
202
203
# Update bbox last, as it depends on font properties.
203
204
bbox = kwargs .pop ("bbox" , sentinel )
204
- super ().update (kwargs )
205
+ ret . extend ( super ().update (kwargs ) )
205
206
if bbox is not sentinel :
206
- self .set_bbox (bbox )
207
+ ret .append (self .set_bbox (bbox ))
208
+ return ret
207
209
208
210
def __getstate__ (self ):
209
211
d = super ().__getstate__ ()
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ class Text(Artist):
43
43
antialiased : bool | None = ...,
44
44
** kwargs
45
45
) -> None : ...
46
- def update (self , kwargs : dict [str , Any ]) -> None : ...
46
+ def update (self , kwargs : dict [str , Any ]) -> list [ Any ] : ...
47
47
def get_rotation (self ) -> float : ...
48
48
def get_transform_rotates_text (self ) -> bool : ...
49
49
def set_rotation_mode (self , m : None | Literal ["default" , "anchor" ]) -> None : ...
You can’t perform that action at this time.
0 commit comments