Skip to main content

Type check decorator for python

Project description

PyPI

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for type-check, version 0.1.8
Filename, size File type Python version Upload date Hashes
Filename, size type_check-0.1.8-py3-none-any.whl (3.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size type-check-0.1.8.tar.gz (1.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page