Skip to content

Commit a26f382

Browse files
committed
Clean up some class level complaints from my local pylint
1 parent 9902103 commit a26f382

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

adafruit_turtle.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
__version__ = "0.0.0-auto.0"
5959
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_turtle.git"
6060

61-
class Color:
61+
class Color(object):
6262
"""Standard colors"""
6363
WHITE = 0xFFFFFF
6464
BLACK = 0x000000
@@ -72,6 +72,10 @@ class Color:
7272

7373
colors = (WHITE, BLACK, RED, ORANGE, YELLOW, GREEN, BLUE, PURPLE, PINK)
7474

75+
def __init__(self):
76+
pass
77+
78+
7579
class Vec2D(tuple):
7680
"""A 2 dimensional vector class, used as a helper class
7781
for implementing turtle graphics.
@@ -86,7 +90,7 @@ class Vec2D(tuple):
8690
# |a| absolute value of a
8791
# a.rotate(angle) rotation
8892
def __init__(self, x, y):
89-
super().__init__((x, y))
93+
super(Vec2D, self).__init__((x, y))
9094

9195
def __add__(self, other):
9296
return Vec2D(self[0] + other[0], self[1] + other[1])
@@ -128,7 +132,7 @@ def __repr__(self):
128132
return "(%.2f,%.2f)" % self
129133

130134

131-
class turtle:
135+
class turtle(object):
132136
"""A Turtle that can be given commands to draw."""
133137

134138
def __init__(self, display=board.DISPLAY):

0 commit comments

Comments
 (0)