Clean up after annotation insertion. Set ownership flag and store annotation in page annotation dictionary.
(page: "Page", annot: "Annot")
| 23692 | |
| 23693 | |
| 23694 | def annot_postprocess(page: "Page", annot: "Annot") -> None: |
| 23695 | """Clean up after annotation insertion. |
| 23696 | |
| 23697 | Set ownership flag and store annotation in page annotation dictionary. |
| 23698 | """ |
| 23699 | #annot.parent = weakref.proxy(page) |
| 23700 | assert isinstance( page, Page) |
| 23701 | assert isinstance( annot, Annot) |
| 23702 | annot.parent = page |
| 23703 | page._annot_refs[id(annot)] = annot |
| 23704 | annot.thisown = True |
| 23705 | |
| 23706 | |
| 23707 | def canon(c): |
no outgoing calls
no test coverage detected
searching dependent graphs…