API Reference for Enthought Tool Suite 3.0.1
An attempt at type-safe casting.
Message templates for interface errors.
BAD_SIGNATURE = "The '%s' class signature for the '%s' method is different from that of the '%s' interface."
A default interface checker:
checker = InterfaceChecker()
logger = logging.getLogger(__name__)
MISSING_METHOD = "The '%s' class does not implement the '%s' method of the '%s' interface."
MISSING_TRAIT = "The '%s' class does not implement the %s trait(s) of the '%s' interface."
Checks that the class implements the specified interfaces.
'interfaces' can be a single interface or a list of interfaces.
| Local name | Refers to |
|---|---|
| FunctionType | types.FunctionType |
| getargspec | inspect.getargspec |
| getmro | inspect.getmro |
| HasTraits | enthought.traits.has_traits.HasTraits |
| logging | logging |
© Copyright 2002-2008 Enthought, Inc.