fix typo
This commit is contained in:
parent
a7f4e14a19
commit
e78e8b2bb8
|
@ -48,9 +48,9 @@ def rand(target, arg):
|
||||||
|
|
||||||
|
|
||||||
def _apply(target, arg, func):
|
def _apply(target, arg, func):
|
||||||
if type(arg is int):
|
if type(arg) is int:
|
||||||
return func(target, arg)
|
return func(target, arg)
|
||||||
elif type(arg is str) and arg in this.values:
|
elif type(arg) is str and arg in this.values:
|
||||||
return func(target, this.values[arg])
|
return func(target, this.values[arg])
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue