mirror of
https://github.com/3b1b/manim.git
synced 2025-07-28 12:32:36 +08:00
Added simple get_parameters function
This commit is contained in:
@ -30,7 +30,11 @@ def choose(n, r):
|
||||
|
||||
|
||||
def get_num_args(function):
|
||||
return len(inspect.signature(function).parameters)
|
||||
return len(get_parameters(function))
|
||||
|
||||
|
||||
def get_parameters(function):
|
||||
return inspect.signature(function).parameters
|
||||
|
||||
# Just to have a less heavyweight name for this extremely common operation
|
||||
#
|
||||
|
Reference in New Issue
Block a user