MCPcopy Create free account
hub / github.com/data-apis/python-record-api / body

Method body

record_api/apis.py:116–129  ·  view source on GitHub ↗
(
        self,
    )

Source from the content-addressed store, hash-verified

114
115 @property
116 def body(
117 self,
118 ) -> typing.Iterable[
119 typing.Union[cst.BaseCompoundStatement, cst.SimpleStatementLine]
120 ]:
121 yield cst.SimpleStatementLine(
122 [cst.ImportFrom(cst.Name("typing"), names=cst.ImportStar())]
123 )
124 yield from assign_properties(self.properties)
125
126 yield from function_defs(self.function_overloads, self.functions, "function")
127
128 for name, class_ in sort_items(self.classes):
129 yield class_.class_def(name)
130
131 def __ior__(self, other: Module) -> Module:
132 """

Callers

nothing calls this directly

Calls 4

assign_propertiesFunction · 0.85
function_defsFunction · 0.85
sort_itemsFunction · 0.85
class_defMethod · 0.80

Tested by

no test coverage detected