(self, expr)
| 106 | function = "ST_Polygon" |
| 107 | |
| 108 | def __init__(self, expr): |
| 109 | super().__init__(expr) |
| 110 | expr = self.source_expressions[0] |
| 111 | if isinstance(expr, Value) and not expr._output_field_or_none: |
| 112 | self.source_expressions[0] = Value( |
| 113 | expr.value, output_field=RasterField(srid=expr.value.srid) |
| 114 | ) |
| 115 | |
| 116 | @cached_property |
| 117 | def output_field(self): |
no test coverage detected