custom_list_names
Enum of the predefined custom list names.
CustomListName
Bases: StrEnum
Class to store hard coded set of Custom List names.
Source code in mlte/custom_list/custom_list_names.py
10 11 12 13 14 15 16 17 | |
CustomListNameDict
Bases: dict[CustomListName, CustomListName]
Class to create dicts to map one custom list name to another.
The CustomListNameDict type is used for mapping one custom list name to another. This is used to ensure that both key and value are valid CustomListName.
Source code in mlte/custom_list/custom_list_names.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |
__getitem__(key)
Override of parent to ensure key is a valid CustomListName.
Source code in mlte/custom_list/custom_list_names.py
41 42 43 44 45 46 | |
__setitem__(key, value)
Override of parent to ensure key and value are valid CustomListName.
Source code in mlte/custom_list/custom_list_names.py
28 29 30 31 32 33 34 35 36 37 38 39 | |
CustomListParentMappings
Class to define the parent mappings of custom lists.
Custom list names, and the parents of each list are set values. This class provides a way to define, and then access the parent or child list of custom lists.
Source code in mlte/custom_list/custom_list_names.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | |
parent_mappings = CustomListNameDict()
class-attribute
instance-attribute
CustomListNameDict to hold all of the mappings.
get_child_list_name(list_name)
staticmethod
Gets the name of the child list of list_name or None.
Source code in mlte/custom_list/custom_list_names.py
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | |
get_parent_list_name(list_name)
staticmethod
Gets the name of the parent list of list_name or None.
Source code in mlte/custom_list/custom_list_names.py
66 67 68 69 70 71 72 73 74 | |