Reset reference counts for aliases so that they match the value passed in `to_counts`.
(self, to_counts)
| 989 | aliases.append(parent_alias) |
| 990 | |
| 991 | def reset_refcounts(self, to_counts): |
| 992 | """ |
| 993 | Reset reference counts for aliases so that they match the value passed |
| 994 | in `to_counts`. |
| 995 | """ |
| 996 | for alias, cur_refcount in self.alias_refcount.copy().items(): |
| 997 | unref_amount = cur_refcount - to_counts.get(alias, 0) |
| 998 | self.unref_alias(alias, unref_amount) |
| 999 | |
| 1000 | def change_aliases(self, change_map): |
| 1001 | """ |
no test coverage detected