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

Skip to content

Commit fb25411

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

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
@@ -60,7 +60,7 @@ per-file-ignores =
6060
lib/matplotlib/backends/qt_editor/formlayout.py: F401, F403
6161
lib/matplotlib/cbook/__init__.py: F401
6262
lib/matplotlib/cbook/deprecation.py: F401
63-
lib/matplotlib/font_manager.py: E221, E251, E501
63+
lib/matplotlib/font_manager.py: E501
6464
lib/matplotlib/image.py: F401, F403
6565
lib/matplotlib/lines.py: F401
6666
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
@@ -617,16 +617,10 @@ class FontProperties:
617617
fontconfig.
618618
"""
619619

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

0 commit comments

Comments
 (0)