Module for checking input parameters by type
Project description
About
Module for checking input parameters by type
Simple Start
- Install package from pip
pip install checkparam
- Use
from checkparam import check_param
@check_param()
def my_func(var_one: int, var_two: typing.Optional[int]):
...
my_func(4, None) # all good
my_func('test', None) # Exception from check_param, becouse 'test' is not type 'int'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
checkparam-0.1.tar.gz
(2.3 kB
view hashes)