Skip to main content

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.


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


Once you have installed the package, fire up the Python 3 interpreter and just do:

from gradual import *

def calculate_total(a:int, b:int) -> int:
    return a + b//100

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for gradual, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size gradual-0.1.1.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page