31 lines
693 B
Python
31 lines
693 B
Python
# Code generated by Lark OpenAPI.
|
|
|
|
from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
|
|
from lark_oapi.core.construct import init
|
|
|
|
|
|
class Section(object):
|
|
_types = {
|
|
"title": str,
|
|
}
|
|
|
|
def __init__(self, d=None):
|
|
self.title: Optional[str] = None
|
|
init(self, d, self._types)
|
|
|
|
@staticmethod
|
|
def builder() -> "SectionBuilder":
|
|
return SectionBuilder()
|
|
|
|
|
|
class SectionBuilder(object):
|
|
def __init__(self) -> None:
|
|
self._section = Section()
|
|
|
|
def title(self, title: str) -> "SectionBuilder":
|
|
self._section.title = title
|
|
return self
|
|
|
|
def build(self) -> "Section":
|
|
return self._section
|