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

Method test_poly_reverse_split_chain

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

Source from the content-addressed store, hash-verified

187 )
188
189 def test_poly_reverse_split_chain(self) -> None:
190 # B :> T <: S :> A
191 self.assert_solve(
192 [self.fx.t, self.fx.s],
193 [
194 self.subc(self.fx.t, self.fx.s),
195 self.subc(self.fx.t, self.fx.b),
196 self.supc(self.fx.s, self.fx.a),
197 ],
198 [self.fx.b, self.fx.a],
199 allow_polymorphic=True,
200 )
201
202 def test_poly_unsolvable_chain(self) -> None:
203 # A <: T <: U <: S <: B

Callers

nothing calls this directly

Calls 3

assert_solveMethod · 0.95
subcMethod · 0.95
supcMethod · 0.95

Tested by

no test coverage detected