Lib for checking types of functions arguments and returning data to accordance with annotating
Project description
Lib for checking types of functions arguments and returning data to accordance with annotating
Installation:
pip install pystatity
Usage:
from pystatity import strict_types
@strict_types
def your_func(one: str, two: int ) -> tuple:
return one, two
your_func('one', 2) # ok
your_func('one', 'two') # will raise WrongParametersType exception
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
statity-0.0.1.tar.gz
(1.7 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 statity-0.0.1.tar.gz.
File metadata
- Download URL: statity-0.0.1.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.9.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f11247d8e551fe21a1f19bef7721739f70a93b61c778bd9124554dee6d72fe3
|
|
| MD5 |
a364e703e5a804793c331b5d8bf2a998
|
|
| BLAKE2b-256 |
2343574b197d8865cc1206dc28c9658b8a7c1e8822ef390582a00120ce437ced
|
File details
Details for the file statity-0.0.1-py3-none-any.whl.
File metadata
- Download URL: statity-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.9.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
632cda4c275932cb7fa92dbe2e3b091b5a3fcc5f60790206eb902e4769521464
|
|
| MD5 |
6764b2a880137a05cb32903365497303
|
|
| BLAKE2b-256 |
eddb5fdb7b0d6b4a59bfdc2ae07ea7aa54bdb2a2650a0f7f45b98348a4db4f98
|