8000 flake errors · matplotlib/matplotlib@74df2a9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 74df2a9

Browse files
committed
flake errors
1 parent e2d5181 commit 74df2a9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

lib/matplotlib/tests/test_ticker.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,9 +1068,10 @@ def test_other_builtins(self):
10681068

10691069
def test_update(self):
10701070
formatter = mticker.FuncFormatter(lambda x, pos: f"{x}+{pos}")
1071-
assert "1+2" == formatter(1,2)
1071+
assert "1+2" == formatter(1, 2)
10721072
with pytest.raises(TypeError, match='3 arguments'):
1073-
formatter.func = lambda x, pos, error: "!"
1073+
formatter.func = lambda x, pos, error: "!"
1074+
10741075

10751076
class TestStrMethodFormatter:
10761077
test_data = [

lib/matplotlib/ticker.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,7 @@ def func(self, func):
420420
if self._nargs not in [1, 2]:
421421
raise TypeError(f"{func.__name__} takes {self._nargs} arguments. "
422422
"FuncFormatter functions take at most 2: "
423-
"x (required), pos (optional).")
424-
425-
423+
"x (required), pos (optional).
426424

427425

428426
class FormatStrFormatter(Formatter):

0 commit comments

Comments
 (0)
0