| 1810 | |
| 1811 | |
| 1812 | class NoPayload(Packet): |
| 1813 | def __new__(cls, *args, **kargs): |
| 1814 | # type: (Type[Packet], *Any, **Any) -> NoPayload |
| 1815 | singl = cls.__dict__.get("__singl__") |
| 1816 | if singl is None: |
| 1817 | cls.__singl__ = singl = Packet.__new__(cls) |
| 1818 | Packet.__init__(singl) |
| 1819 | return cast(NoPayload, singl) |
| 1820 | |
| 1821 | def __init__(self, *args, **kargs): |
| 1822 | # type: (*Any, **Any) -> None |
| 1823 | pass |
| 1824 | |
| 1825 | def dissection_done(self, pkt): |
| 1826 | # type: (Packet) -> None |
| 1827 | pass |
| 1828 | |
| 1829 | def add_payload(self, payload): |
| 1830 | # type: (Union[Packet, bytes]) -> NoReturn |
| 1831 | raise Scapy_Exception("Can't add payload to NoPayload instance") |
| 1832 | |
| 1833 | def remove_payload(self): |
| 1834 | # type: () -> None |
| 1835 | pass |
| 1836 | |
| 1837 | def add_underlayer(self, underlayer): |
| 1838 | # type: (Any) -> None |
| 1839 | pass |
| 1840 | |
| 1841 | def remove_underlayer(self, other): |
| 1842 | # type: (Packet) -> None |
| 1843 | pass |
| 1844 | |
| 1845 | def add_parent(self, parent): |
| 1846 | # type: (Any) -> None |
| 1847 | pass |
| 1848 | |
| 1849 | def remove_parent(self, other): |
| 1850 | # type: (Packet) -> None |
| 1851 | pass |
| 1852 | |
| 1853 | def copy(self): |
| 1854 | # type: () -> NoPayload |
| 1855 | return self |
| 1856 | |
| 1857 | def clear_cache(self): |
| 1858 | # type: () -> None |
| 1859 | pass |
| 1860 | |
| 1861 | def __repr__(self): |
| 1862 | # type: () -> str |
| 1863 | return "" |
| 1864 | |
| 1865 | def __str__(self): |
| 1866 | # type: () -> str |
| 1867 | return "" |
| 1868 | |
| 1869 | def __bytes__(self): |
no outgoing calls
no test coverage detected
searching dependent graphs…