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

Method read

mypy/types.py:982–995  ·  view source on GitHub ↗
(cls, data: ReadBuffer)

Source from the content-addressed store, hash-verified

980
981 @classmethod
982 def read(cls, data: ReadBuffer) -> TypeVarTupleType:
983 assert read_tag(data) == INSTANCE
984 fallback = Instance.read(data)
985 ret = TypeVarTupleType(
986 read_str(data),
987 read_str(data),
988 TypeVarId(read_int(data), namespace=read_str(data)),
989 read_type(data),
990 fallback,
991 read_type(data),
992 min_len=read_int(data),
993 )
994 assert read_tag(data) == END_TAG
995 return ret
996
997 def accept(self, visitor: TypeVisitor[T]) -> T:
998 return visitor.visit_type_var_tuple(self)

Callers

nothing calls this directly

Calls 6

read_strFunction · 0.90
read_intFunction · 0.90
TypeVarTupleTypeClass · 0.85
TypeVarIdClass · 0.85
read_typeFunction · 0.70
readMethod · 0.45

Tested by

no test coverage detected