(self, model)
| 943 | return shape |
| 944 | |
| 945 | def _build_initial_shape(self, model): |
| 946 | shape = { |
| 947 | 'type': model['type'], |
| 948 | } |
| 949 | if 'documentation' in model: |
| 950 | shape['documentation'] = model['documentation'] |
| 951 | for attr in Shape.METADATA_ATTRS: |
| 952 | if attr in model: |
| 953 | shape[attr] = model[attr] |
| 954 | return shape |
| 955 | |
| 956 | def _build_scalar(self, model): |
| 957 | return self._build_initial_shape(model) |
no outgoing calls
no test coverage detected