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

Method to_var

mypy/plugins/dataclasses.py:173–174  ·  view source on GitHub ↗
(self, current_info: TypeInfo)

Source from the content-addressed store, hash-verified

171 return self.type
172
173 def to_var(self, current_info: TypeInfo) -> Var:
174 return Var(self.alias or self.name, self.expand_type(current_info))
175
176 def serialize(self) -> JsonDict:
177 assert self.type

Callers 3

to_argumentMethod · 0.95
_freezeMethod · 0.80
_propertize_callablesMethod · 0.80

Calls 2

expand_typeMethod · 0.95
VarClass · 0.90

Tested by

no test coverage detected