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.

Source Distribution

type-check-0.1.8.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

type_check-0.1.8-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

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

Hashes for type-check-0.1.8.tar.gz
Algorithm Hash digest
SHA256 4ce3752330e22717e1f8f020a5a21492b7c886b173542d238e6957b421888b04
MD5 b6cfe3600605320a96db03bd57f15926
BLAKE2b-256 a5f7c7c0211f2f13b6decd23eab5dc91d06c5376d37d178b390c1141fdfa9141

See more details on using hashes here.

File details

Details for the file type_check-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for type_check-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 f3200dee660f6a08148d047f6ed3080060613da91bdce6206de72a1b9c8daf81
MD5 fe23bbdb7dcbecbe7f1848effa7ee0bf
BLAKE2b-256 f3787ed922edae8e22c72e1a3ab9068f5d6911a990f784c913b70cbac1f93f46

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page