-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodels.py
More file actions
23 lines (18 loc) · 758 Bytes
/
models.py
File metadata and controls
23 lines (18 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class WikiFunction:
def __init__(self, func_name: str, full_function_syntax: str, returning: str, description: str,
arg_descs: dict):
self.function_name = func_name
self.full_function_name_with_args = full_function_syntax
self.returning_value = returning
self.description = description
self.arguments_descriptions = arg_descs
def get_function_name(self):
return self.function_name
def get_full_function(self):
return self.full_function_name_with_args
def get_descriptions(self):
return self.description
def get_return_value(self):
return self.returning_value
def get_arguments_descriptions(self):
return self.arguments_descriptions