MCPcopy Index your code
hub / github.com/python/mypy / write

Method write

mypy/types.py:2616–2633  ·  view source on GitHub ↗
(self, data: WriteBuffer)

Source from the content-addressed store, hash-verified

2614 )
2615
2616 def write(self, data: WriteBuffer) -> None:
2617 write_tag(data, CALLABLE_TYPE)
2618 self.fallback.write(data)
2619 write_type_list(data, self.arg_types)
2620 write_int_list(data, [int(x.value) for x in self.arg_kinds])
2621 write_str_opt_list(data, self.arg_names)
2622 self.ret_type.write(data)
2623 write_str_opt(data, self.name)
2624 write_type_list(data, self.variables)
2625 write_bool(data, self.is_ellipsis_args)
2626 write_bool(data, self.implicit)
2627 write_bool(data, self.is_bound)
2628 write_type_opt(data, self.type_guard)
2629 write_type_opt(data, self.type_is)
2630 write_bool(data, self.from_concatenate)
2631 write_bool(data, self.imprecise_arg_kinds)
2632 write_bool(data, self.unpack_kwargs)
2633 write_tag(data, END_TAG)
2634
2635 @classmethod
2636 def read(cls, data: ReadBuffer) -> CallableType:

Callers

nothing calls this directly

Calls 7

write_int_listFunction · 0.90
write_str_opt_listFunction · 0.90
write_str_optFunction · 0.90
write_type_listFunction · 0.85
intClass · 0.85
write_type_optFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected