mirror of
https://github.com/MillironX/nfdocs-parser.git
synced 2024-11-21 16:46:05 +00:00
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:
parent
cd83bcb3d1
commit
ad108c60b5
1 changed files with 2 additions and 2 deletions
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue