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

Method test_generics

mypy/test/testtypes.py:1472–1474  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1470 self.assert_union_result(t, [self.fx.a, self.fx.b])
1471
1472 def test_generics(self) -> None:
1473 t = UnionType.make_union([self.fx.ga, self.fx.gb])
1474 self.assert_union_result(t, [self.fx.ga, self.fx.gb])
1475
1476 def assert_union_result(self, t: ProperType, expected: list[Type]) -> None:
1477 t2 = remove_instance_last_known_values(t)

Callers

nothing calls this directly

Calls 2

assert_union_resultMethod · 0.95
make_unionMethod · 0.80

Tested by

no test coverage detected