Static Typing in Python

Dustin Ingram

Python 3 Static Analysis Tooling Type-Hinting python

See in schedule Download/View Slides

Python is well-known as a programming language without static types. This means that you don’t need to say what a given variable will hold, or whether your function will return a string or an integer (or sometimes one, and sometimes another!). This has historically made Python a very flexible and beginner-friendly language.

In this talk, we’ll discuss the advantages and disadvantages to a static type system, as well as recent efforts to introduce static typing to Python via optional “type hints” and various tools to aid in adding types to Python code. We’ll see what this means for Python, for Python programmers, and what the future has in store for Python’s type system.

Type: Talk (30 mins); Python level: Beginner; Domain level: Beginner


Dustin Ingram

Google

Dustin is a Developer Advocate at Google, focused on supporting the Python community on Google Cloud. He's also a director of the Python Software Foundation, maintainer of PyPI, and organizer for the PyTexas conference.