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
```
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.3.tar.gz
(1.8 kB
view hashes)
Built Distribution
Close
Hashes for type_check-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 040672e00cd2258fca29d15bb1dbab1c5be6b6d41f2c1bcae56cbd4a59506ec2 |
|
MD5 | 76f97a43380127030053237403f51c57 |
|
BLAKE2b-256 | 7b0e6d26525b715c05c4ea8866a0369b56047c5cdff92c3d40f1a80690e15a9a |