Optypecheck 17 | Coderz Repository

optypecheck 17

Last updated:

0 purchases

optypecheck 17 Image
optypecheck 17 Images

Free

Languages

Categories

Add to Cart

Description:

optypecheck 17

This package implements a non intrusive and optional type checking in
functions and methods by using annotations. Once types are defined in
annotations, no changes are required to make the verification of types.
And, because it is completely optional, it can be used only in the
desired environments, like unit testings. This way, the performance of
production code is not affected.
Learn more in:

https://bitbucket.org/carlopires/optypecheck


Installation
pip3 install optypecheck


Example
def gencode(a: bytes, b: str) -> str:
return '{}{}'.format(a[0], b)

def valid_number(n) -> 'decimal.Decimal':
return n

# enable type checking in DEBUG mode
assert __import__('typecheck').typecheck(__name__)

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.