(self, pkt, x)
| 1563 | |
| 1564 | class _PacketFieldSingle(_PacketField[K]): |
| 1565 | def any2i(self, pkt, x): |
| 1566 | # type: (Optional[Packet], Any) -> K |
| 1567 | if x and pkt and hasattr(x, "add_parent"): |
| 1568 | cast("Packet", x).add_parent(pkt) |
| 1569 | return super(_PacketFieldSingle, self).any2i(pkt, x) |
| 1570 | |
| 1571 | def getfield(self, |
| 1572 | pkt, # type: Packet |
nothing calls this directly
no test coverage detected