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 for a class with no
# annotations :class:`Info` generates an ``__init__`` taking any mapping
# and keywords.
def __init__(self) -> 'None': # pylint: disable=super-init-not-called
pass