Python基础 · free preview

Type Hints and the Wider Ecosystem

Annotate functions and collections with type hints, understand what they do and do not enforce, and get oriented in pip, virtual environments, and where to go next.

1. Overview

Overview

2. Annotating Functions

Annotating Functions

3. Types for Collections

Types for Collections

4. Hints Are Documentation, Not Enforcement

Hints Are Documentation, Not Enforcement

5. Beyond the Browser

Beyond the Browser

6. Add the Hints

Add the Hints

7. Does It Stop?

Does It Stop?

Practice this interactively

Free account · instant grading · spaced review that schedules itself.

Start this course for free