(self, data: WriteBuffer)
| 1222 | return ret |
| 1223 | |
| 1224 | def write(self, data: WriteBuffer) -> None: |
| 1225 | write_tag(data, FUNC_DEF) |
| 1226 | write_str(data, self._name) |
| 1227 | mypy.types.write_type_opt(data, self.type) |
| 1228 | write_str(data, self._fullname) |
| 1229 | write_flags( |
| 1230 | data, |
| 1231 | [ |
| 1232 | self.is_property, |
| 1233 | self.is_class, |
| 1234 | self.is_static, |
| 1235 | self.is_final, |
| 1236 | self.is_overload, |
| 1237 | self.is_generator, |
| 1238 | self.is_coroutine, |
| 1239 | self.is_async_generator, |
| 1240 | self.is_awaitable_coroutine, |
| 1241 | self.is_decorated, |
| 1242 | self.is_conditional, |
| 1243 | self.is_trivial_body, |
| 1244 | self.is_trivial_self, |
| 1245 | self.is_mypy_only, |
| 1246 | ], |
| 1247 | ) |
| 1248 | write_str_opt_list(data, self.arg_names) |
| 1249 | write_int_list(data, [int(ak.value) for ak in self.arg_kinds]) |
| 1250 | write_int(data, self.abstract_status) |
| 1251 | if self.dataclass_transform_spec is None: |
| 1252 | write_tag(data, LITERAL_NONE) |
| 1253 | else: |
| 1254 | self.dataclass_transform_spec.write(data) |
| 1255 | write_str_opt(data, self.deprecated) |
| 1256 | write_str_opt(data, self.original_first_arg) |
| 1257 | write_tag(data, END_TAG) |
| 1258 | |
| 1259 | @classmethod |
| 1260 | def read(cls, data: ReadBuffer) -> FuncDef: |
nothing calls this directly
no test coverage detected