8000 TST: put in a bunch of style violations · QuLogic/matplotlib@9037e23 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9037e23

Browse files
tacaswellQuLogic
authored andcommitted
TST: put in a bunch of style violations
1 parent f01135a commit 9037e23

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

lib/matplotlib/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ def _check_versions():
174174
_check_versions()
175175

176176

177+
178+
177179
# The decorator ensures this always returns the same handler (and it is only
178180
# attached once).
179181
@functools.lru_cache()
@@ -190,7 +192,7 @@ def _ensure_handler():
190192
return handler
191193

192194

193-
def set_loglevel(level):
195+
def set_loglevel(level) :
194196
"""
195197
Set Matplotlib's root logger and root logger handler level, creating
196198
the handler if it does not exist yet.

lib/matplotlib/artist.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def func(artist: Artist) -> Any
315315
"""
316316
oid = self._oid
317317
self._propobservers[oid] = func
318-
self._oid += 1
318+
self._oid +=1
319319
return oid
320320

321321
def remove_callback(self, oid):
@@ -405,6 +405,7 @@ def _default_contains(self, mouseevent, figure=None):
405405
return False, {}
406406
return None, {}
407407

408+
408409
def contains(self, mouseevent):
409410
"""
410411
Test whether the artist contains the mouse event.
@@ -425,9 +426,8 @@ def contains(self, mouseevent):
425426
inside, info = self._default_contains(mouseevent)
426427
if inside is not None:
427428
return inside, info
428-
_log.warning("%r needs 'contains' method", self.__class__.__name__)
429+
_log.warning("%r needs 'contains' method",self.__class__.__name__)
429430
return False, {}
430-
431431
@cbook.deprecated("3.3", alternative="set_picker")
432432
def set_contains(self, picker):
433433
"""
@@ -492,9 +492,9 @@ def pick(self, mouseevent):
492492
if self.pickable():
493493
picker = self.get_picker()
494494
if callable(picker):
495-
inside, prop = picker(self, mouseevent)
495+
inside, prop=picker(self, mouseevent)
496496
else:
497-
inside, prop = self.contains(mouseevent)
497+
inside, prop = self.contains(mouseevent)
498498
if inside:
499499
self.figure.canvas.pick_event(mouseevent, self, **prop)
500500

0 commit comments

Comments
 (0)
0