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

Method supc

mypy/test/testsolve.py:283–284  ·  view source on GitHub ↗
(self, type_var: TypeVarType, bound: Type)

Source from the content-addressed store, hash-verified

281 assert_equal(dict(actual_uppers), uppers)
282
283 def supc(self, type_var: TypeVarType, bound: Type) -> Constraint:
284 return Constraint(type_var, SUPERTYPE_OF, bound)
285
286 def subc(self, type_var: TypeVarType, bound: Type) -> Constraint:
287 return Constraint(type_var, SUBTYPE_OF, bound)

Calls 1

ConstraintClass · 0.90

Tested by

no test coverage detected