MCPcopy
hub / github.com/python/mypy / make_union

Method make_union

mypy/types.py:3358–3360  ·  view source on GitHub ↗
(
        items: Sequence[ProperType], line: int = -1, column: int = -1
    )

Source from the content-addressed store, hash-verified

3356 @overload
3357 @staticmethod
3358 def make_union(
3359 items: Sequence[ProperType], line: int = -1, column: int = -1
3360 ) -> ProperType: ...
3361
3362 @overload
3363 @staticmethod

Calls 3

lenFunction · 0.85
UnionTypeClass · 0.85
UninhabitedTypeClass · 0.85

Tested by 6

test_optionalMethod · 0.64
test_two_instancesMethod · 0.64
test_genericsMethod · 0.64