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

Method test_poly_bounded_chain

mypy/test/testsolve.py:162–174  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

160 )
161
162 def test_poly_bounded_chain(self) -> None:
163 # B <: T <: U <: S <: A
164 self.assert_solve(
165 [self.fx.t, self.fx.u, self.fx.s],
166 [
167 self.supc(self.fx.t, self.fx.b),
168 self.subc(self.fx.t, self.fx.u),
169 self.subc(self.fx.u, self.fx.s),
170 self.subc(self.fx.s, self.fx.a),
171 ],
172 [self.fx.b, self.fx.b, self.fx.b],
173 allow_polymorphic=True,
174 )
175
176 def test_poly_reverse_overlapping_chain(self) -> None:
177 # A :> T <: S :> B

Callers

nothing calls this directly

Calls 3

assert_solveMethod · 0.95
supcMethod · 0.95
subcMethod · 0.95

Tested by

no test coverage detected