Skip to main content

enforce python type hints

Project description

Type Enforcer

Adds a decorator which can enforce basic python type hints. Ensure that all of the function parameters have type hints! Even if it is just typing.Any Supports basic type hinting operations, like Type[], Union[], and Container[datatype]

Must also use hints for the return type, following same rules as the parameters

good for debugging

Install

  1. pip install TypeEnforcer
  2. from TypeEnforcer.TypeEnforcement.type_enforcer import TypeEnforcer
  3. @TypeEnforcer.enforcer

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

TypeEnforcer-1.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

TypeEnforcer-1.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file TypeEnforcer-1.1.0.tar.gz.

File metadata

  • Download URL: TypeEnforcer-1.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for TypeEnforcer-1.1.0.tar.gz
Algorithm Hash digest
SHA256 6e67b01c70c686f8fe35193191ad3971f7f1ff651c43233057b30bc41a87c75d
MD5 6e480633ac9ec9a5950cdb17972bb7f4
BLAKE2b-256 48035a22ef5cd9ec1af4b4848f89286df9f87b958941733583585c3496774dd0

See more details on using hashes here.

File details

Details for the file TypeEnforcer-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for TypeEnforcer-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6bbc99275602acd6b1a26b9105db4c04286481e5043900fa026693883ac98575
MD5 ac1aa177afec3b44fa6a6013288f9c3d
BLAKE2b-256 e0030d7c662813a6c9221aaf42b40989a1ce6bc4c8c4adf91745f7578c4d6ac7

See more details on using hashes here.

Supported by

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