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

Class SuperExpr

mypy/nodes.py:2848–2866  ·  view source on GitHub ↗

Expression super().name

Source from the content-addressed store, hash-verified

2846
2847
2848class SuperExpr(Expression):
2849 """Expression super().name"""
2850
2851 __slots__ = ("name", "info", "call")
2852
2853 __match_args__ = ("name", "call", "info")
2854
2855 name: str
2856 info: TypeInfo | None # Type that contains this super expression
2857 call: CallExpr # The expression super(...)
2858
2859 def __init__(self, name: str, call: CallExpr) -> None:
2860 super().__init__()
2861 self.name = name
2862 self.call = call
2863 self.info = None
2864
2865 def accept(self, visitor: ExpressionVisitor[T]) -> T:
2866 return visitor.visit_super_expr(self)
2867
2868
2869class LambdaExpr(FuncItem, Expression):

Callers 3

visit_AttributeMethod · 0.90
visit_super_exprMethod · 0.90
read_expressionFunction · 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…