Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/python/mypy
/ subc
Method
subc
mypy/test/testsolve.py:286–287 ·
view source on GitHub ↗
(self, type_var: TypeVarType, bound: Type)
Source
from the content-addressed store, hash-verified
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)
Callers
15
test_simple_subtype_constraints
Method · 0.95
test_both_kinds_of_constraints
Method · 0.95
test_unsatisfiable_constraints
Method · 0.95
test_exactly_specified_result
Method · 0.95
test_multiple_variables
Method · 0.95
test_simple_constraints_with_dynamic_type
Method · 0.95
test_both_normal_and_any_types_in_results
Method · 0.95
test_poly_trivial_free
Method · 0.95
test_poly_free_pair
Method · 0.95
test_poly_free_pair_with_bounds
Method · 0.95
test_poly_free_pair_with_bounds_uninhabited
Method · 0.95
test_poly_bounded_chain
Method · 0.95
Calls
1
Constraint
Class · 0.90
Tested by
no test coverage detected