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

Function make_call

mypy/test/testtypes.py:1597–1611  ·  view source on GitHub ↗
(*items: tuple[str, str | None])

Source from the content-addressed store, hash-verified

1595
1596
1597def make_call(*items: tuple[str, str | None]) -> CallExpr:
1598 args: list[Expression] = []
1599 arg_names = []
1600 arg_kinds = []
1601 for arg, name in items:
1602 shortname = arg.split(".")[-1]
1603 n = NameExpr(shortname)
1604 n.fullname = arg
1605 args.append(n)
1606 arg_names.append(name)
1607 if name:
1608 arg_kinds.append(ARG_NAMED)
1609 else:
1610 arg_kinds.append(ARG_POS)
1611 return CallExpr(NameExpr("f"), args, arg_kinds, arg_names)
1612
1613
1614class TestExpandTypeLimitGetProperType(TestCase):

Callers 5

test_simpleMethod · 0.85
test_optional_argMethod · 0.85
test_two_argsMethod · 0.85

Calls 4

NameExprClass · 0.90
CallExprClass · 0.90
splitMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…