A package providing runtime semantics of Gradual Typing
Project description
This package provides the runtime type-checking semantics of Gradual Typing for Python. Get a short introduction to gradual typing here.
Installing
This package only works on Python 3. To install gradual on your system, you must first get the Python 3 version of pip-3.2:
sudo apt-get install python3-pip
Now, you can easily install the gradual package via:
pip install gradual
If you wish to install it to your base system, then the above command would require root. If you already have gradual and wish to upgrade the existing package then you can use the --upgrade flag:
pip install --upgrade gradual
Usage
Once you have installed the package, fire up the Python 3 interpreter and just do:
from gradual import * @typed def calculate_total(a:int, b:int) -> int: return a + b//100
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file gradual-0.1.1.tar.gz
.
File metadata
- Download URL: gradual-0.1.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce5073410f614eb76bd19f5f38643d6cf3750e200fee306102511fafc7b045d1 |
|
MD5 | 04c94dc4eec30bef3e9c36b101704ba7 |
|
BLAKE2b-256 | 7d05841f1c79382ec8ff8b01132695b4c9c2727c9c12301ddb856c72c0dd44ea |