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

Method visit_MatchOr

mypy/fastparse.py:1828–1830  ·  view source on GitHub ↗
(self, n: ast3.MatchOr)

Source from the content-addressed store, hash-verified

1826
1827 # MatchOr(expr* pattern)
1828 def visit_MatchOr(self, n: ast3.MatchOr) -> OrPattern:
1829 node = OrPattern([self.visit(pattern) for pattern in n.patterns])
1830 return self.set_line(node, n)
1831
1832 def validate_type_alias(self, n: ast_TypeAlias) -> None:
1833 incorrect_expr = find_disallowed_expression_in_annotation_scope(n.value)

Callers

nothing calls this directly

Calls 3

visitMethod · 0.95
set_lineMethod · 0.95
OrPatternClass · 0.90

Tested by

no test coverage detected