mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Added simple get_parameters function
This commit is contained in:
parent
a72b769c0f
commit
c8c003ba4b
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue