(self, instance: Any)
| 342 | flag_modified(instance, attr_name) |
| 343 | |
| 344 | def fdel(self, instance: Any) -> None: |
| 345 | attr_name = self.attr_name |
| 346 | column_value = getattr(instance, attr_name) |
| 347 | if column_value is None: |
| 348 | raise AttributeError(self.attr_name) |
| 349 | try: |
| 350 | del column_value[self.index] |
| 351 | except KeyError as err: |
| 352 | raise AttributeError(self.attr_name) from err |
| 353 | else: |
| 354 | setattr(instance, attr_name, column_value) |
| 355 | flag_modified(instance, attr_name) |
| 356 | |
| 357 | def expr( |
| 358 | self, model: Any |
no test coverage detected