mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
fix linter errors
This commit is contained in:
@@ -10,9 +10,9 @@ import scipy
|
||||
genList = []
|
||||
|
||||
SEP = os.sep
|
||||
|
||||
|
||||
class Generator:
|
||||
|
||||
|
||||
def __init__(self, title, id, func, kwargs):
|
||||
self.title = title
|
||||
self.id = id
|
||||
|
||||
@@ -12,6 +12,7 @@ _PYTHAGOREAN = [(3, 4, 5),
|
||||
|
||||
(7, 24, 25)]
|
||||
|
||||
|
||||
def gen_func(unit='m', format='string'):
|
||||
# Generate first triplet
|
||||
height, half_width, triangle_height_1 = random.sample(random.choice(_PYTHAGOREAN), 3)
|
||||
|
||||
Reference in New Issue
Block a user