Skip to content

Commit 1f7da9d

Browse files
algobytewiseshermanhui
authored andcommitted
mypy-fix for bezier_curve.py (TheAlgorithms#4220)
1 parent 8d76c78 commit 1f7da9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: graphics/bezier_curve.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# https://www.tutorialspoint.com/computer_graphics/computer_graphics_curves.htm
33
from __future__ import annotations
44

5-
from scipy.special import comb
5+
from scipy.special import comb # type: ignore
66

77

88
class BezierCurve:
@@ -78,7 +78,7 @@ def plot_curve(self, step_size: float = 0.01):
7878
step_size: defines the step(s) at which to evaluate the Bezier curve.
7979
The smaller the step size, the finer the curve produced.
8080
"""
81-
from matplotlib import pyplot as plt
81+
from matplotlib import pyplot as plt # type: ignore
8282

8383
to_plot_x: list[float] = [] # x coordinates of points to plot
8484
to_plot_y: list[float] = [] # y coordinates of points to plot

0 commit comments

Comments
 (0)