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

Method visit_MatchSingleton

mypy/fastparse.py:1774–1776  ·  view source on GitHub ↗
(self, n: ast3.MatchSingleton)

Source from the content-addressed store, hash-verified

1772 return self.set_line(node, n)
1773
1774 def visit_MatchSingleton(self, n: ast3.MatchSingleton) -> SingletonPattern:
1775 node = SingletonPattern(n.value)
1776 return self.set_line(node, n)
1777
1778 def visit_MatchSequence(self, n: ast3.MatchSequence) -> SequencePattern:
1779 patterns = [self.visit(p) for p in n.patterns]

Callers

nothing calls this directly

Calls 2

set_lineMethod · 0.95
SingletonPatternClass · 0.90

Tested by

no test coverage detected