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

Method copy_common

mypy/copytype.py:129–134  ·  view source on GitHub ↗
(self, t: ProperType, t2: ProperType)

Source from the content-addressed store, hash-verified

127 assert False, "only ProperTypes supported"
128
129 def copy_common(self, t: ProperType, t2: ProperType) -> ProperType:
130 t2.line = t.line
131 t2.column = t.column
132 t2.can_be_false = t.can_be_false
133 t2.can_be_true = t.can_be_true
134 return t2

Callers 15

visit_anyMethod · 0.95
visit_none_typeMethod · 0.95
visit_erased_typeMethod · 0.95
visit_deleted_typeMethod · 0.95
visit_instanceMethod · 0.95
visit_type_varMethod · 0.95
visit_param_specMethod · 0.95
visit_parametersMethod · 0.95
visit_type_var_tupleMethod · 0.95
visit_unpack_typeMethod · 0.95
visit_partial_typeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected