(self)
| 256 | return SUPPORTED_TYPE[self.type].unflatten(children, self.aux_data) |
| 257 | |
| 258 | def __hash__(self): |
| 259 | return hash( |
| 260 | tuple( |
| 261 | [ |
| 262 | self.type, |
| 263 | self.aux_data, |
| 264 | self.num_leaves, |
| 265 | tuple([hash(x) for x in self.children_defs]), |
| 266 | ] |
| 267 | ) |
| 268 | ) |
| 269 | |
| 270 | def __ne__(self, other) -> bool: |
| 271 | return not self.__eq__(other) |