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

Class ReturnStmt

mypy/nodes.py:2004–2016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2002
2003
2004class ReturnStmt(Statement):
2005 __slots__ = ("expr",)
2006
2007 __match_args__ = ("expr",)
2008
2009 expr: Expression | None
2010
2011 def __init__(self, expr: Expression | None) -> None:
2012 super().__init__()
2013 self.expr = expr
2014
2015 def accept(self, visitor: StatementVisitor[T]) -> T:
2016 return visitor.visit_return_stmt(self)
2017
2018
2019class AssertStmt(Statement):

Callers 5

visit_ReturnMethod · 0.90
visit_TypeAliasMethod · 0.90
visit_return_stmtMethod · 0.90
read_statementFunction · 0.90
read_type_alias_stmtFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…