From bd01693934387e0ed227ceafd6d1dcd470f4ee52 Mon Sep 17 00:00:00 2001 From: Ioannis Pantidis <40605232+AttackingOrDefending@users.noreply.github.com> Date: Mon, 6 May 2024 19:28:29 +0300 Subject: [PATCH] Fix mypy --- sundialy/analemmatic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sundialy/analemmatic.py b/sundialy/analemmatic.py index 4f7a63c..0292041 100644 --- a/sundialy/analemmatic.py +++ b/sundialy/analemmatic.py @@ -2,8 +2,8 @@ import datetime from .tools import SPA from shapely import affinity, geometry # type: ignore -from matplotlib.patches import Ellipse # type: ignore -import matplotlib.pyplot as plt # type: ignore +from matplotlib.patches import Ellipse +import matplotlib.pyplot as plt import math NUMBER_TYPE = Union[int, float] @@ -209,7 +209,7 @@ def add_to_y(hour: NUMBER_TYPE) -> float: zorder -= 1 ax.plot([x_ans], [y_ans], color='k', marker='.', zorder=zorder, linewidth=1) zorder -= 1 - ax.text(x_ans + add_to_x(hour) * 0.02 * self.width, y_ans + add_to_y(hour) * 0.02 * self.width, hour, + ax.text(x_ans + add_to_x(hour) * 0.02 * self.width, y_ans + add_to_y(hour) * 0.02 * self.width, str(hour), {'size': 4}, zorder=zorder) right = -1.