File tree 2 files changed +6
-4
lines changed 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1078,8 +1078,9 @@ def set_aria(self, aria):
1078
1078
"""
1079
1079
Set ARIA properties to the artist.
1080
1080
1081
- A primary use of this method is to attach aria-label to the artist to provide alt text to figures.
1082
-
1081
+ A primary use of this method is to attach aria-label to the artist to
1082
+ provide alt text to figures.
1083
+
1083
1084
Parameters
1084
1085
----------
1085
1086
aria : dict
@@ -1091,7 +1092,7 @@ def set_aria(self, aria):
1091
1092
f'aria must be dict or None, not { type (aria )} ' )
1092
1093
self ._aria = aria
1093
1094
1094
- def update_aria (self , ** aria ):
1095
+ def update_aria (self , ** aria ):
1095
1096
"""Update WAI-ARIA properties on the artist"""
1096
1097
# TODO validation
1097
1098
for k , v in aria .items ():
Original file line number Diff line number Diff line change @@ -375,8 +375,9 @@ class MyArtist4(MyArtist3):
375
375
376
376
assert MyArtist4 .set is MyArtist3 .set
377
377
378
+
378
379
def test_set_aria ():
379
380
art = martist .Artist ()
380
381
with pytest .raises (TypeError , match = '^aria must be dict' ):
381
382
art .set_aria ([])
382
- art .set_aria (dict (label = "artist alt text" ))
383
+ art .set_aria (dict (label = "artist alt text" ))
You can’t perform that action at this time.
0 commit comments