(self)
| 1159 | ) |
| 1160 | |
| 1161 | def schema_has_unions(self) -> bool: |
| 1162 | for union in self.schema.unions: |
| 1163 | if not self.is_imported_type(union): |
| 1164 | return True |
| 1165 | for message in self.schema.messages: |
| 1166 | if self.is_imported_type(message): |
| 1167 | continue |
| 1168 | if self.message_has_unions(message): |
| 1169 | return True |
| 1170 | return False |
| 1171 | |
| 1172 | def message_has_unions(self, message: Message) -> bool: |
| 1173 | if message.nested_unions: |
no test coverage detected