Skip to main content

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


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)

Uploaded Source

Built Distribution

LimitFunc-0.0.1-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page