MCPcopy Create free account
hub / github.com/python/mypy / translate_opt_expr_list

Method translate_opt_expr_list

mypy/fastparse.py:436–441  ·  view source on GitHub ↗
(self, l: Sequence[AST | None])

Source from the content-addressed store, hash-verified

434 return node
435
436 def translate_opt_expr_list(self, l: Sequence[AST | None]) -> list[Expression | None]:
437 res: list[Expression | None] = []
438 for e in l:
439 exp = self.visit(e)
440 res.append(exp)
441 return res
442
443 def translate_expr_list(self, l: Sequence[AST]) -> list[Expression]:
444 return cast(list[Expression], self.translate_opt_expr_list(l))

Callers 2

translate_expr_listMethod · 0.95
visit_DictMethod · 0.95

Calls 2

visitMethod · 0.95
appendMethod · 0.80

Tested by

no test coverage detected