8000 Fixing Ruff Errors · matplotlib/matplotlib@1eea948 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1eea948

Browse files
committed
Fixing Ruff Errors
1 parent d8fb083 commit 1eea948

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/matplotlib/scale.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ def wrapper(self, *args, **kwargs):
139139
return init_func(self, *args, **kwargs)
140140
return wrapper
141141

142+
142143
class LinearScale(ScaleBase):
143144
"""
144145
The default linear scale.
@@ -317,7 +318,7 @@ class LogScale(ScaleBase):
317318
"""
318319
name = 'log'
319320

320-
@handle_axis_parameter
321+
@handle_axis_parameter
321322
def __init__(self, axis=None, *, base=10, subs=None, nonpositive="clip"):
322323
"""
323324
Parameters
@@ -793,8 +794,9 @@ def register_scale(scale_class):
793794
sig = inspect.signature(scale_class.__init__)
794795
if 'axis' in sig.parameters:
795796
warnings.warn(
796-
f"The scale class {scale_class.__name__} still uses the 'axis' parameter in its constructor. "
797-
"Consider refactoring it to remove this dependency.",
797+
f"The scale class {scale_class.__name__} still uses the 'axis' "
798+
"parameter in its constructor. Consider refactoring it to remove "
799+
"this dependency.",
798800
DeprecationWarning
799801
)
800802
_scale_mapping[scale_class.name] = scale_class

0 commit comments

Comments
 (0)
0