Skip to main content

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

Release files for gradual 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gradual 0.1.1
File Size Uploaded
gradual-0.1.1.tar.gz 5.6 kB Details

Release files / gradual-0.1.1.tar.gz

Download URL gradual-0.1.1.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ce5073410f614eb76bd19f5f38643d6cf3750e200fee306102511fafc7b045d1
BLAKE2b-256 checksum
How to use checksums
7d05841f1c79382ec8ff8b01132695b4c9c2727c9c12301ddb856c72c0dd44ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page