A community-maintained Python framework for creating mathematical animations.
Added simple get_parameters function
Grant Sandersonc8c003ba4b91
diff --git a/manimlib/utils/simple_functions.py b/manimlib/utils/simple_functions.pyindex 2cd048f9f..f567cf9a1 100644--- a/manimlib/utils/simple_functions.py+++ b/manimlib/utils/simple_functions.py@@ -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#