| 81 | |
| 82 | @dataclass |
| 83 | class SocketSpec(): |
| 84 | name: str |
| 85 | identifier: str |
| 86 | type: str |
| 87 | subtype: str = 'NONE' |
| 88 | hide_value: bool = False |
| 89 | hide_in_modifier: bool = False |
| 90 | default_value: object = None |
| 91 | min_value: object = None |
| 92 | max_value: object = None |
| 93 | internal_links: int = 1 |
| 94 | external_links: int = 1 |
| 95 | |
| 96 | @property |
| 97 | def base_idname(self): |
| 98 | return base_idname[self.type] |
| 99 | |
| 100 | @property |
| 101 | def subtype_idname(self): |
| 102 | return subtype_idname[(self.type, self.subtype)] |
| 103 | |
| 104 | |
| 105 | class AbstractNodeGroupInterfaceTest(unittest.TestCase): |
no outgoing calls