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

Method visit_MatchValue

mypy/fastparse.py:1770–1772  ·  view source on GitHub ↗
(self, n: ast3.MatchValue)

Source from the content-addressed store, hash-verified

1768 return self.set_line(node, n)
1769
1770 def visit_MatchValue(self, n: ast3.MatchValue) -> ValuePattern:
1771 node = ValuePattern(self.visit(n.value))
1772 return self.set_line(node, n)
1773
1774 def visit_MatchSingleton(self, n: ast3.MatchSingleton) -> SingletonPattern:
1775 node = SingletonPattern(n.value)

Callers

nothing calls this directly

Calls 3

visitMethod · 0.95
set_lineMethod · 0.95
ValuePatternClass · 0.90

Tested by

no test coverage detected