limit function args type
Project description
LimitFunc:限制函数
Limit function args type
限制函数参数类型
method of application:使用方法
annotation:The parameters are ordered in the default order
注:参数顺序按默认顺序
from LimitFunc import limit_func
# No default values
# 没有默认值
@check_args(checks={'a': int, 'b': str})
def test(a, b):
pass
from LimitFunc import limit_func
# Have default values
# 有默认值
@check_args(checks={'a': int, 'b': str}, defaults={'b': 'test'})
def test(a, b):
pass
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
LimitFunc-0.0.1.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for LimitFunc-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 020fa2d6fc38d0f66becd27dc507550c8323da8ce58cf4c34cdd279a4d888573 |
|
MD5 | 73eed9d69a437f558f8ab3c0c7184c59 |
|
BLAKE2b-256 | 542ecb2564b4b798bdc1f1e621dd76d1b010551d9d9a7a8e7cf92deee01b41bc |