Lines Matching refs:__html__
10 def __html__(self) -> str:
45 This implements the ``__html__()`` interface that some frameworks
46 use. Passing an object that implements ``__html__()`` will wrap the
50 ... def __html__(self):
70 if hasattr(base, "__html__"):
71 base = base.__html__()
78 def __html__(self) -> "te.Self":
82 if isinstance(other, str) or hasattr(other, "__html__"):
88 if isinstance(other, str) or hasattr(other, "__html__"):
270 elif hasattr(value, "__html__"):
274 " define __html_format__. A class that defines __html__ must define"
277 rv = value.__html__()
293 if isinstance(value, str) or hasattr(value, "__html__"):