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:
pass
At class function, specify type of self
with base type, for example:
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.7.tar.gz
(1.8 kB
view hashes)
Built Distribution
Close
Hashes for type_check-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2e4fb7f95293933826401dc9df5c3517eb9d1e35e16e0bcf94daa8104fd40ee |
|
MD5 | 07bedd87a260a5cab8913b834d8839d5 |
|
BLAKE2b-256 | 30a1f038b045a608419b4102ea189d65cc11bf770babd2f112b3afa7b76380a4 |