(self)
| 1061 | assert False, f"unexpected item type: {self.item_type}" |
| 1062 | |
| 1063 | def is_optional(self) -> bool: |
| 1064 | item_type = self.item_type |
| 1065 | if isinstance(item_type, RUnion): |
| 1066 | return True |
| 1067 | elif isinstance(item_type, RVec): |
| 1068 | return item_type.is_optional() |
| 1069 | return False |
| 1070 | |
| 1071 | def depth(self) -> int: |
| 1072 | item_type = self.item_type |
no test coverage detected