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 hashes)
Built Distribution
Close
Hashes for type_check-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3200dee660f6a08148d047f6ed3080060613da91bdce6206de72a1b9c8daf81 |
|
MD5 | fe23bbdb7dcbecbe7f1848effa7ee0bf |
|
BLAKE2b-256 | f3787ed922edae8e22c72e1a3ab9068f5d6911a990f784c913b70cbac1f93f46 |