Real Python Tutorials

How to Use Type Hints for Multiple Return Types in Python
NEW

Using Type Hints for Multiple Return Types in Python

In this video course, you'll learn how to define multiple return types using type hints in Python. This course covers working with single or multiple pieces of data, defining type aliases, and performing type checking using a third-party static type checker tool.

Oct 15, 2024 intermediate