Skip to content

Commit 8e075a1

Browse files
committed
Flatten FontProperties.__init__ arguments.
No need to split over multiple lines and align equals signs.
1 parent ea06596 commit 8e075a1

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ per-file-ignores =
5858
lib/matplotlib/backends/qt_editor/formlayout.py: F401, F403
5959
lib/matplotlib/cbook/__init__.py: F401
6060
lib/matplotlib/cbook/deprecation.py: F401
61-
lib/matplotlib/font_manager.py: E221, E251, E501
61+
lib/matplotlib/font_manager.py: E501
6262
lib/matplotlib/image.py: F401, F403
6363
lib/matplotlib/lines.py: F401
6464
lib/matplotlib/mathtext.py: E221, E251

lib/matplotlib/font_manager.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -618,16 +618,10 @@ class FontProperties:
618618
fontconfig.
619619
"""
620620

621-
def __init__(self,
622-
family = None,
623-
style = None,
624-
variant= None,
625-
weight = None,
626-
stretch= None,
627-
size = None,
628-
fname = None, # if set, it's a hardcoded filename to use
629-
math_fontfamily = None,
630-
):
621+
def __init__(self, family=None, style=None, variant=None, weight=None,
622+
stretch=None, size=None,
623+
fname=None, # if set, it's a hardcoded filename to use
624+
math_fontfamily=None):
631625
self._family = _normalize_font_family(rcParams['font.family'])
632626
self._slant = rcParams['font.style']
633627
self._variant = rcParams['font.variant']

0 commit comments

Comments
 (0)