Metadata-Version: 2.1
Name: accepts
Version: 1.0.3
Summary: @accepts decorator to check arguments types
Home-page: https://github.com/looking-for-a-job/accepts.py
License: UNKNOWN
Description: ### Install
        
        ```bash
        $ [sudo] pip install accepts
        ```
        
        ### Features
        
        *	support **multiple types** argument
        *	support **None** argument
        *	human readable detailed exception message
        
        ### Usage
        
        ```python
        >>> from accepts import accepts
        
        >>> @accepts(arg1type,arg2type,...)
        ```
        
        ### Examples
        
        ```python
        >>> @accepts(int)
        def inc(value):
        	return value+1
        
        >>> inc(1) # ok
        >>> inc(1.5) # exception
        TypeError: ....
        
        # multiple types
        >>> @accepts((int,float))
        
        # None
        >>> @accepts((int,float,type(None)))
        ```
        
        ### Sources
        
        +   [`accepts.accepts(*types)`](https://github.com/looking-for-a-job/accepts.py/blob/master/accepts/__init__.py)
Keywords: type decorator
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Software Development
Description-Content-Type: text/markdown
