Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0d12722

Browse files
committed
flake fixes
1 parent 2d28564 commit 0d12722

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lib/matplotlib/artist.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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():

lib/matplotlib/tests/test_artist.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,9 @@ class MyArtist4(MyArtist3):
375375

376376
assert MyArtist4.set is MyArtist3.set
377377

378+
378379
def 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"))

0 commit comments

Comments
 (0)