Skip to content

urbonegi/strongly_typed_python

Repository files navigation

Strongly typed python

This is the examples collection project covering all code presented in the 'Strongly typed python' talk @Pylondinium 2019 conference.

Requirements

Code was built using python 3.6.1 version. None of the example_*.py scripts have any external dependencies.

Examples

Initial demo payment function

Run the example script: python3 example_1.py

Declaring type annotations

Run the example script: python3 example_2.py

Validate function arguments

Run the example script: python3 example_3.py

Validate function return value

Run the example script: python3 example_4.py

Validate class attributes

Run the example script: python3 example_5.py

Validate class methods (arguments and return values)

Run the example script: python3 example_6.py

Auto-generated doc-strings

Run the example script: python3 example_7.py

Typed data-structures (tuple)

Run the example script: python3 example_8.py

About

Run time types validation in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages