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

Method pattern

mypy/treetransform.py:738–742  ·  view source on GitHub ↗
(self, pattern: Pattern)

Source from the content-addressed store, hash-verified

736 return new
737
738 def pattern(self, pattern: Pattern) -> Pattern:
739 new = pattern.accept(self)
740 assert isinstance(new, Pattern)
741 new.set_line(pattern)
742 return new
743
744 # Helpers
745 #

Callers 6

visit_as_patternMethod · 0.95
visit_or_patternMethod · 0.95
visit_mapping_patternMethod · 0.95
visit_class_patternMethod · 0.95
visit_match_stmtMethod · 0.95

Calls 3

isinstanceFunction · 0.85
acceptMethod · 0.45
set_lineMethod · 0.45

Tested by

no test coverage detected