Did I find the right examples for you? yes no

All Samples(5)  |  Call(0)  |  Derive(0)  |  Import(5)

        def accepts(*types):
    #print types
    def check_accepts(f):
        assert len(types) == f.func_code.co_argcount
        def new_f(*args, **kwds):
            for (a, t) in zip(args, types):
                assert isinstance(a, t), \
                       "arg %r does not match %s" % (a,t)
            return f(*args, **kwds)
        new_f.func_name = f.func_name
        return new_f
    return check_accepts
        


src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/pyexcelerator/pyExcelerator/Workbook.py   hortonworks-sandbox(Download)
import BIFFRecords
import Style
from Deco import accepts, returns
 
 

src/p/i/picalo-4.94/picalo/lib/pyExcelerator/Workbook.py   picalo(Download)
import BIFFRecords
import Style
from Deco import accepts, returns
 
 

src/d/j/django_excel_templates-0.1/django_excel_templates/ExcelReports.py   django_excel_templates(Download)
import xlwt as xl
import helpers
from Deco import accepts, returns
from decimal import Decimal
from color_converter import *

src/p/y/pyexcelerator-0-0.6.4a/pyExcelerator/Workbook.py   pyExcelerator(Download)
import BIFFRecords
import Style
from Deco import accepts, returns
 
 

src/p/y/pyExcelerator-HEAD/pyExcelerator/Workbook.py   pyExcelerator(Download)
import BIFFRecords
import Style
from Deco import accepts, returns