mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
Added args to Generator __call__
This commit is contained in:
@@ -22,8 +22,8 @@ class Generator:
|
||||
self.id
|
||||
) + " " + self.title + " " + self.generalProb + " " + self.generalSol
|
||||
|
||||
def __call__(self, **kwargs):
|
||||
return self.func(**kwargs)
|
||||
def __call__(self, *args, **kwargs):
|
||||
return self.func(*args, **kwargs)
|
||||
|
||||
|
||||
def getGenList():
|
||||
|
||||
Reference in New Issue
Block a user