def __getitem__(self, item):
        if isinstance(item, int):
            return self.layers[item]
        for layer in self.layers:
            if layer.layer_name == item.lower():
                return layer
        raise KeyError('Layer does not exist in packet')
Report terminal size change. This will trigger a redraw.
dataset/ETHPy150Open KimiNewt/pyshark/src/pyshark/packet/packet.py/Packet.__getitem__--crossover with--dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/interface.py/_InterfaceEventLoopCallbacks.terminal_size_changed