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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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