From 0534ee525d649279065fb6f25e68bac6baf24819 Mon Sep 17 00:00:00 2001 From: "Y.D.X" <73375426+YDX-2147483647@users.noreply.github.com> Date: Thu, 16 Feb 2023 22:25:17 +0800 Subject: [PATCH] Remove a redundant comma The comma doesn't have any effect, but triggers a lint warning: Expression value is unused. (`a,` means the tuple `(a,)`) --- lib/matplotlib/scale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/scale.py b/lib/matplotlib/scale.py index e278c7464cc0..7e74649aa683 100644 --- a/lib/matplotlib/scale.py +++ b/lib/matplotlib/scale.py @@ -576,7 +576,7 @@ def set_default_locators_and_formatters(self, axis): if self._base > 1: axis.set_major_formatter(LogFormatterSciNotation(self._base)) else: - axis.set_major_formatter('{x:.3g}'), + axis.set_major_formatter('{x:.3g}') class LogitTransform(Transform):