class documentation

class TypeBuilder: (source)

View In Hierarchy

Utility class for building union types.

Method __bool__ Undocumented
Method __init__ Undocumented
Method add_type Add a new pytd type to the types represented by this TypeBuilder.
Method build Get a union of all the types added so far.
Method wrap Wrap the type in a generic type.
Instance Variable tags Undocumented
Instance Variable union Undocumented
def __bool__(self): (source)

Undocumented

def __init__(self): (source)

Undocumented

def add_type(self, other): (source)

Add a new pytd type to the types represented by this TypeBuilder.

def build(self): (source)

Get a union of all the types added so far.

def wrap(self, base): (source)

Wrap the type in a generic type.

Undocumented

Undocumented