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

Skip to content

Commit 7730d0c

Browse files
committed
STY: Fix continuation line with same indent as next logical line.
1 parent 160f8ad commit 7730d0c

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ignore =
44
# Normal default
55
E121,E123,E126,E226,E24,E704,W503,W504,
66
# Additional ignores:
7-
E122, E125, E127, E129, E131,
7+
E122, E127, E129, E131,
88
E265, E266,
99
E305, E306,
1010
E722, E741,

lib/matplotlib/backends/backend_wx.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,9 +1344,8 @@ def __init__(self, toolmanager, parent, style=wx.TB_HORIZONTAL):
13441344
self._toolitems = {}
13451345
self._groups = {}
13461346

1347-
def add_toolitem(
1348-
self, name, group, position, image_file, description, toggle):
1349-
1347+
def add_toolitem(self, name, group, position, image_file, description,
1348+
toggle):
13501349
before, group = self._add_to_group(group, name, position)
13511350
idx = self.GetToolPos(before.Id)
13521351
if image_file:

lib/matplotlib/transforms.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2222,10 +2222,9 @@ def _invalidate_internal(self, value, invalidating_node):
22222222
# either:
22232223
# (a) the left hand transform is non affine
22242224
# (b) it is the left hand node which has triggered the invalidation
2225-
if value == Transform.INVALID_AFFINE \
2226-
and not self._b.is_affine \
2227-
and (not self._a.is_affine or invalidating_node is self._a):
2228-
2225+
if (value == Transform.INVALID_AFFINE and
2226+
not self._b.is_affine and
2227+
(not self._a.is_affine or invalidating_node is self._a)):
22292228
value = Transform.INVALID
22302229

22312230
Transform._invalidate_internal(self, value=value,

lib/mpl_toolkits/axes_grid1/inset_locator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,8 @@ def inset_axes(parent_axes, width, height, loc='upper right',
487487
if bbox_to_anchor is None:
488488
bbox_to_anchor = parent_axes.bbox
489489

490-
if isinstance(bbox_to_anchor, tuple) and \
491-
(isinstance(width, str) or isinstance(height, str)):
490+
if (isinstance(bbox_to_anchor, tuple) and
491+
(isinstance(width, str) or isinstance(height, str))):
492492
if len(bbox_to_anchor) != 4:
493493
raise ValueError("Using relative units for width or height "
494494
"requires to provide a 4-tuple or a "

0 commit comments

Comments
 (0)