INNER CODE UNIT · Python
__init__
pybuilder/pybuilder · src/main/python/pybuilder/_vendor/annotated_doc/main.py:24
def __init__(self, documentation: str, /) -> None:
self.documentation = documentation
def __repr__(self) -> str:
return f"Doc({self.documentation!r})"
def __hash__(self) -> int:
return hash(self.documentation)
def __eq__(self, other: object) -> bool:
if not isinstance(other, Doc):
return NotImplemented
return self.documentation == other.documentation