From 993b9a58862e0c1e80a76903f3fd561df028ea35 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 28 Sep 2021 02:47:47 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- examples/callbacks.py | 4 ++-- mpl_point_clicker/_clicker.py | 2 +- setup.cfg | 2 +- setup.py | 1 - 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/callbacks.py b/examples/callbacks.py index 2bc5434..72d745a 100644 --- a/examples/callbacks.py +++ b/examples/callbacks.py @@ -7,13 +7,13 @@ """ +from typing import Tuple + import matplotlib.pyplot as plt import numpy as np -from typing import Tuple from mpl_point_clicker import clicker - image = np.load("example_image.npy") fig, ax = plt.subplots() diff --git a/mpl_point_clicker/_clicker.py b/mpl_point_clicker/_clicker.py index f3acf22..4b339e4 100644 --- a/mpl_point_clicker/_clicker.py +++ b/mpl_point_clicker/_clicker.py @@ -126,7 +126,7 @@ def set_positions(self, positions): for k, v in positions.keys(): self._positions[k] = list(v) self._observers.process('pos-set', self.get_positions()) - + def _on_pick(self, event): # On the pick event, find the original line corresponding to the legend # proxy line, and toggle its visibility. diff --git a/setup.cfg b/setup.cfg index d6c7185..9ae79a5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -49,4 +49,4 @@ max-line-length = 88 docstring-convention = "numpy" extend-ignore = # See https://github.com/PyCQA/pycodestyle/issues/373 - E203, \ No newline at end of file + E203, diff --git a/setup.py b/setup.py index 26e08e4..7f1a176 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,4 @@ from setuptools import setup - if __name__ == "__main__": setup()