Batch update attributes, similar to dict's update method
(self, values: dict)
| 39 | return hasattr(self, key) |
| 40 | |
| 41 | def update(self, values: dict): |
| 42 | """Batch update attributes, similar to dict's update method""" |
| 43 | for key, value in values.items(): |
| 44 | setattr(self, key, value) |
| 45 | |
| 46 | def pop(self, key, default=None): |
| 47 | """ |
no test coverage detected