From ad108c60b581ad4930461c4b2e0931be38b59be1 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Thu, 6 Jan 2022 08:10:33 -0600 Subject: [PATCH] Correct function signatures for use inside of class Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- nfdocs-parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nfdocs-parser.py b/nfdocs-parser.py index 177c155..78d9510 100755 --- a/nfdocs-parser.py +++ b/nfdocs-parser.py @@ -11,7 +11,7 @@ class NFDocs(Directive): # Declare the docstring starting characters DOC_STARTER = "/// " - def definition_type(signature): + def definition_type(self, signature): # Returns "name", workflow|process|function def_type = "unknown" if "workflow" in signature: @@ -31,7 +31,7 @@ class NFDocs(Directive): # Return the results return def_name, def_type - def params_to_list(params): + def params_to_list(self, params): if "tuple" in params.keys(): tuple_item = nodes.list_item() if "name" in params.keys():