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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file LimitFunc-0.0.1.tar.gz.
File metadata
- Download URL: LimitFunc-0.0.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2612303d9b0d490ef486e9ded5237a51dd6aff0bd980c69d1b0f075a5a9cdcd
|
|
| MD5 |
971926ca66c8086895721c80825df48d
|
|
| BLAKE2b-256 |
417dc564e8b42e108ceec34cdacf3a5abbf70ccdc6eb99d18ba7700f8299475b
|
File details
Details for the file LimitFunc-0.0.1-py3-none-any.whl.
File metadata
- Download URL: LimitFunc-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
020fa2d6fc38d0f66becd27dc507550c8323da8ce58cf4c34cdd279a4d888573
|
|
| MD5 |
73eed9d69a437f558f8ab3c0c7184c59
|
|
| BLAKE2b-256 |
542ecb2564b4b798bdc1f1e621dd76d1b010551d9d9a7a8e7cf92deee01b41bc
|