Add a type constraint to this pattern Parameters ---------- dtype: str The dtype to match Returns ------- result: DataTypePattern The resulting DataTypePattern
(self, dtype: str)
| 127 | return StructInfoPattern(self, struct_info) |
| 128 | |
| 129 | def has_dtype(self, dtype: str) -> "DataTypePattern": |
| 130 | """ |
| 131 | Add a type constraint to this pattern |
| 132 | |
| 133 | Parameters |
| 134 | ---------- |
| 135 | dtype: str |
| 136 | The dtype to match |
| 137 | |
| 138 | Returns |
| 139 | ------- |
| 140 | result: DataTypePattern |
| 141 | The resulting DataTypePattern |
| 142 | """ |
| 143 | return has_dtype(dtype, self) |
| 144 | |
| 145 | def has_shape(self, shape: list[PrimExpr]) -> "ShapePattern": |
| 146 | """ |
no test coverage detected