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

# -*- coding: utf-8 -*-
"""data models for no-payload packet"""

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

__all__ = ['NoPayload']


[docs] @info_final class NoPayload(Protocol): """No-payload packet is an empty packet.""" # NOTE: We add this method for both type annotation and to mark that this # class accepts no arguments at runtime, since :class:`Info` explicitly # skipped those whose :attr:`__annotations__` is empty :obj:`dict`. def __init__(self) -> 'None': # pylint: disable=super-init-not-called pass