Skip to content

Commit b4c6a00

Browse files
committed
style(dda): fix docstring
1 parent 244225f commit b4c6a00

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

graphics/digital_differential_analyzer_line.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
from typing import List, Tuple
2-
3-
41
def digital_differential_analyzer_line(
5-
p1: Tuple[int, int], p2: Tuple[int, int]
6-
) -> List[Tuple[int, int]]:
2+
p1: tuple[int, int], p2: tuple[int, int]
3+
) -> list[tuple[int, int]]:
74
"""
85
Draw a line between two points using the Digital Differential Analyzer (DDA)
96
algorithm.
@@ -46,7 +43,7 @@ def digital_differential_analyzer_line(
4643
y_inc = dy / float(steps)
4744

4845
x, y = float(x1), float(y1)
49-
points: List[Tuple[int, int]] = []
46+
points: list[tuple[int, int]] = []
5047

5148
for _ in range(steps):
5249
x += x_inc

0 commit comments

Comments
 (0)