Module Expr Str ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body Expr Str ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias Return Call NameLoad NameLoad TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body ImportFrom alias alias Return Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults vararg body Return Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body ImportFrom alias If CompareIs NameLoad NameLoad body Return If Call NameLoad NameLoad NameLoad body Return TryExcept body If UnaryOpNot Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Return NameLoad Expr SubscriptLoad NameLoad Index SubscriptLoad NameLoad Slice Num handlers ExceptHandler body Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body TryExcept body Expr SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler body Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad Str decorator_list NameLoad decorator_list TryExcept body ImportFrom alias alias If UnaryOpNot Call NameLoad body ImportFrom alias Expr Call NameLoad Expr Call NameLoad handlers ExceptHandler type NameLoad body FunctionDef arguments args defaults vararg kwarg body If NameLoad body Return SubscriptLoad NameLoad Index Num orelse Return Lambda arguments args NameParam defaults NameLoad decorator_list Assign NameStore NameLoad
N/A N/A 
An interface to PyContracts, to annotate functions with type information

The @contract decorator is disabled by default, to avoid
any runtime overhead when using Glue. To enable runtime
checking, run

glue.config.enable_contracts(True)

in a glue config file.

If PyContrats is imported, a no-op @contract decorator
is provided for compatibility

Glue code should only import contract through this module,
and never directly from the contracts package.
 __future__ absolute_import division print_function pandas Series numpy ndarray s_ glue.external.six string_types glue.config enable_contracts _build_custom_contracts N/A N/A N/A N/A N/A 
    Define some custom contracts if PyContracts is found
     contracts new_contract cid_like N/A N/A value N/A N/A N/A 
        Value is a ComponentID or a string
         glue.core ComponentID N/A N/A isinstance value N/A ComponentID string_types N/A new_contract component_like N/A N/A value N/A N/A glue.core Component ComponentLink N/A N/A isinstance value N/A Component ComponentLink ndarray list Series N/A new_contract array_like N/A N/A value N/A N/A N/A N/A isinstance value N/A ndarray list N/A new_contract color N/A N/A value N/A N/A N/A 
        A valid matplotlib color
         matplotlib.colors colorConverter N/A N/A N/A N/A N/A colorConverter to_rgba value N/A N/A N/A ValueError N/A N/A False N/A new_contract inst N/A N/A value N/A types N/A N/A N/A isinstance value types N/A new_contract data_view N/A N/A value N/A N/A glue.core ComponentID N/A N/A value None N/A N/A N/A N/A isinstance value ComponentID N/A N/A N/A N/A N/A N/A N/A isinstance N/A value N/A 0 ComponentID N/A N/A False N/A N/A s_ N/A N/A value N/A 1 N/A N/A N/A N/A False N/A new_contract array_view N/A N/A value N/A N/A N/A N/A N/A N/A s_ N/A value N/A N/A N/A N/A False N/A new_contract callable N/A N/A value N/A N/A N/A N/A hasattr value __call__ N/A new_contract N/A N/A N/A contracts contract ContractsMeta N/A N/A N/A enable_contracts N/A contracts disable_all N/A N/A disable_all N/A N/A _build_custom_contracts N/A N/A N/A ImportError N/A contract N/A N/A N/A args kwargs N/A N/A args N/A N/A N/A args N/A 0 N/A N/A N/A N/A N/A func N/A func N/A N/A ContractsMeta type