Correct function signatures for use inside of class

Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
Thomas A. Christensen II 2022-01-06 08:10:33 -06:00
parent cd83bcb3d1
commit ad108c60b5
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -11,7 +11,7 @@ class NFDocs(Directive):
# Declare the docstring starting characters # Declare the docstring starting characters
DOC_STARTER = "/// " DOC_STARTER = "/// "
def definition_type(signature): def definition_type(self, signature):
# Returns "name", workflow|process|function # Returns "name", workflow|process|function
def_type = "unknown" def_type = "unknown"
if "workflow" in signature: if "workflow" in signature:
@ -31,7 +31,7 @@ class NFDocs(Directive):
# Return the results # Return the results
return def_name, def_type return def_name, def_type
def params_to_list(params): def params_to_list(self, params):
if "tuple" in params.keys(): if "tuple" in params.keys():
tuple_item = nodes.list_item() tuple_item = nodes.list_item()
if "name" in params.keys(): if "name" in params.keys():