File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1078,8 +1078,9 @@ def set_aria(self, aria):
10781078 """
10791079 Set ARIA properties to the artist.
10801080
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+
10831084 Parameters
10841085 ----------
10851086 aria : dict
@@ -1091,7 +1092,7 @@ def set_aria(self, aria):
10911092 f'aria must be dict or None, not { type (aria )} ' )
10921093 self ._aria = aria
10931094
1094- def update_aria (self , ** aria ):
1095+ def update_aria (self , ** aria ):
10951096 """Update WAI-ARIA properties on the artist"""
10961097 # TODO validation
10971098 for k , v in aria .items ():
Original file line number Diff line number Diff line change @@ -375,8 +375,9 @@ class MyArtist4(MyArtist3):
375375
376376 assert MyArtist4 .set is MyArtist3 .set
377377
378+
378379def test_set_aria ():
379380 art = martist .Artist ()
380381 with pytest .raises (TypeError , match = '^aria must be dict' ):
381382 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