class documentation

class TypeMatcher: (source)

Known subclasses: pytype.pytd.type_match.TypeMatch

View In Hierarchy

Base class for modules that match types against each other. Maps pytd node types (<type1>, <type2>) to a method "match_<type1>_<type2>". So e.g. to write a matcher that compares Functions by name, you would write: class MyMatcher(TypeMatcher): def match_Function_Function(self, f1, f2): return f1.name == f2.name

Method default_match Undocumented
Method match Undocumented
def default_match(self, t1, t2): (source)

Undocumented

def match(self, t1, t2, *args, **kwargs): (source)

Undocumented