Files

38 lines
819 B
Python
Raw Permalink Normal View History

2025-12-25 11:16:59 +08:00
from __future__ import annotations
from typing import ClassVar, final, Literal
class Contentview:
name: ClassVar[str]
syntax_highlight: ClassVar[Literal["xml", "yaml", "none", "error"]]
def prettify(self, data: bytes, metadata) -> str:
pass
def render_priority(self, data: bytes, metadata) -> float:
pass
@final
class InteractiveContentview(Contentview):
def reencode(self, data: str, metadata) -> bytes:
pass
_test_inspect_metadata: Contentview
hex_dump: Contentview
hex_stream: InteractiveContentview
msgpack: InteractiveContentview
protobuf: InteractiveContentview
grpc: InteractiveContentview
__all__ = [
"Contentview",
"InteractiveContentview",
"hex_dump",
"hex_stream",
"msgpack",
"protobuf",
"grpc",
"_test_inspect_metadata",
]