Type check decorator for python
Project description
Type Check
Type check decorator for python
Installation:
pip3 install type-check
Usage:
Import type_check
decorator:
from type_check import type_check
Usage in function:
@type_check
def my_func(arg: type = default) -> return_type:
return return_type()
At class function, specify type of self
with base type, for example:
@type_check
def __init__(self: object, arg: type = default):
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
type-check-0.1.8.tar.gz
(1.8 kB
view details)
Built Distribution
File details
Details for the file type-check-0.1.8.tar.gz
.
File metadata
- Download URL: type-check-0.1.8.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
4ce3752330e22717e1f8f020a5a21492b7c886b173542d238e6957b421888b04
|
|
MD5 |
b6cfe3600605320a96db03bd57f15926
|
|
BLAKE2b-256 |
a5f7c7c0211f2f13b6decd23eab5dc91d06c5376d37d178b390c1141fdfa9141
|
File details
Details for the file type_check-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: type_check-0.1.8-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
f3200dee660f6a08148d047f6ed3080060613da91bdce6206de72a1b9c8daf81
|
|
MD5 |
fe23bbdb7dcbecbe7f1848effa7ee0bf
|
|
BLAKE2b-256 |
f3787ed922edae8e22c72e1a3ab9068f5d6911a990f784c913b70cbac1f93f46
|