Skip to content

Latest commit

 

History

History
44 lines (21 loc) · 968 Bytes

README.md

File metadata and controls

44 lines (21 loc) · 968 Bytes

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