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
- pip install TypeEnforcer
- from TypeEnforcer.TypeEnforcement.type_enforcer import TypeEnforcer
- @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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e67b01c70c686f8fe35193191ad3971f7f1ff651c43233057b30bc41a87c75d |
|
MD5 | 6e480633ac9ec9a5950cdb17972bb7f4 |
|
BLAKE2b-256 | 48035a22ef5cd9ec1af4b4848f89286df9f87b958941733583585c3496774dd0 |
File details
Details for the file TypeEnforcer-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: TypeEnforcer-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bbc99275602acd6b1a26b9105db4c04286481e5043900fa026693883ac98575 |
|
MD5 | ac1aa177afec3b44fa6a6013288f9c3d |
|
BLAKE2b-256 | e0030d7c662813a6c9221aaf42b40989a1ce6bc4c8c4adf91745f7578c4d6ac7 |