Source code for pcapkit.protocols.data.misc.raw

# -*- coding: utf-8 -*-
"""data models for raw protocol data"""

from typing import TYPE_CHECKING

from pcapkit.corekit.infoclass import info_final
from pcapkit.protocols.data.protocol import Protocol

if TYPE_CHECKING:
    from typing import Optional

__all__ = ['Raw']


[docs] @info_final class Raw(Protocol): """Raw packet is an unknown protocol.""" #: Original enumeration of this protocol. protocol: 'Optional[int]' #: error instance when parsing packet data error: 'Optional[Exception]' if TYPE_CHECKING: def __init__(self, protocol: 'Optional[int]', error: 'Optional[Exception]') -> 'None': ... # pylint: disable=unused-argument,super-init-not-called,multiple-statements