Package translate :: Package misc :: Package typecheck :: Class Typeclass

[hide private]
[frames] | no frames]

# Class Typeclass

source code

Instance Methods | [hide private]

__init__(self, *types) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code

recalculate_interface(self) | source code

instances(self) | source code

interface(self) | source code

has_instance(self, instance) | source code

add_instance(self, instance) | source code

intersect(self, other) | source code

_calculate_interface(self) | source code

__typecheck__(self, func, to_check) | source code

__eq__(self, other) | source code

__hash__(self) hash(x) | source code

__repr__(self) str(x) | source code

__str__(self) str(x) | source code

Inherited from `CheckType`: `__ne__` Inherited from `object`: `__delattr__`, `__getattribute__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`

Class Methods | [hide private]

Inherited from `CheckType`: `__typesig__`

Class Variables | [hide private]

| bad_members = ``{``'``__class__``'``:` True`,` `'``__init__``'``:` True`,` `'``__new__``'``:``...``

Properties | [hide private]

Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, *types)
(Constructor)

source code

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
  (inherited documentation)

### __typecheck__(self, func, to_check)

source code

Overrides: CheckType.__typecheck__

### __eq__(self, other)
(Equality operator)

source code

Overrides: CheckType.__eq__

### __hash__(self)
(Hashing function)

source code

hash(x)

Overrides: object.__hash__
  (inherited documentation)

### __repr__(self)
(Representation operator)

source code

str(x)

Overrides: object.__repr__
  (inherited documentation)

### __str__(self)
(Informal representation operator)

source code

str(x)

Overrides: object.__str__
  (inherited documentation)

Class Variable Details | [hide private]

### bad_members

Value:

      {'__class__': True, '__init__': True, '__new__': True}