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

Class ValuePattern

mypy/patterns.py:58–68  ·  view source on GitHub ↗

The pattern x.y (or x.y.z, ...)

Source from the content-addressed store, hash-verified

56
57
58class ValuePattern(Pattern):
59 """The pattern x.y (or x.y.z, ...)"""
60
61 expr: Expression
62
63 def __init__(self, expr: Expression) -> None:
64 super().__init__()
65 self.expr = expr
66
67 def accept(self, visitor: PatternVisitor[T]) -> T:
68 return visitor.visit_value_pattern(self)
69
70
71class SingletonPattern(Pattern):

Callers 3

visit_MatchValueMethod · 0.90
visit_value_patternMethod · 0.90
read_patternFunction · 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…