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

Method test_poly_unsolvable_chain

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

Source from the content-addressed store, hash-verified

200 )
201
202 def test_poly_unsolvable_chain(self) -> None:
203 # A <: T <: U <: S <: B
204 self.assert_solve(
205 [self.fx.t, self.fx.u, self.fx.s],
206 [
207 self.supc(self.fx.t, self.fx.a),
208 self.subc(self.fx.t, self.fx.u),
209 self.subc(self.fx.u, self.fx.s),
210 self.subc(self.fx.s, self.fx.b),
211 ],
212 [None, None, None],
213 allow_polymorphic=True,
214 )
215
216 def test_simple_chain_closure(self) -> None:
217 self.assert_transitive_closure(

Callers

nothing calls this directly

Calls 3

assert_solveMethod · 0.95
supcMethod · 0.95
subcMethod · 0.95

Tested by

no test coverage detected