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

Method group

mypy/fastparse.py:1490–1495  ·  view source on GitHub ↗
(self, op: str, vals: list[Expression], n: ast3.expr)

Source from the content-addressed store, hash-verified

1488 return self.group(op, self.translate_expr_list(n.values), n)
1489
1490 def group(self, op: str, vals: list[Expression], n: ast3.expr) -> OpExpr:
1491 if len(vals) == 2:
1492 e = OpExpr(op, vals[0], vals[1])
1493 else:
1494 e = OpExpr(op, vals[0], self.group(op, vals[1:], n))
1495 return self.set_line(e, n)
1496
1497 # BinOp(expr left, operator op, expr right)
1498 def visit_BinOp(self, n: ast3.BinOp) -> OpExpr:

Callers 15

visit_BoolOpMethod · 0.95
parse_versionFunction · 0.80
parseFunction · 0.80
parse_type_ignore_tagFunction · 0.80
parse_type_commentFunction · 0.80
report_parse_errorFunction · 0.80
str_reprMethod · 0.80
find_python_encodingFunction · 0.80
__init__Method · 0.80
parse_signatureFunction · 0.80
parse_all_signaturesFunction · 0.80

Calls 3

set_lineMethod · 0.95
OpExprClass · 0.90
lenFunction · 0.85

Tested by 15

get_build_stepsMethod · 0.64
parse_sourcesMethod · 0.64
maybe_suggestMethod · 0.64
maybe_inspectMethod · 0.64
test_output_jsonFunction · 0.64
test_python_evaluationFunction · 0.64
run_caseMethod · 0.64
parse_moduleMethod · 0.64
parse_mypy_argsFunction · 0.64
parse_flagsMethod · 0.64
parse_modulesMethod · 0.64
parse_argsFunction · 0.64