Logo

Previous topic

Static Typing with Python

Next topic

Typing Python Libraries

This Page

  • Show Source

Quick search

Navigation

  • index
  • next |
  • previous |
  • python logo
  • Python »
  • typing documentation »
  • Type System Guides
  • |

Type System GuidesΒΆ

Contents:

  • Typing Python Libraries
    • Why provide type annotations?
    • How to provide type annotations?
    • How much of my library needs types?
    • Best Practices for Inlined Types
    • Compatibility with Older Python Versions
    • Non-Standard Type Behaviors
    • Docstrings
  • Writing and Maintaining Stub Files
    • Tools for generating stubs
    • Tools for maintaining stubs
  • Unreachable Code and Exhaustiveness Checking
    • Never and NoReturn
    • assert_never() and Exhaustiveness Checking
    • Marking Code as Unreachable
    • Detecting Unexpectedly Unreachable Code

Previous topic

Static Typing with Python

Next topic

Typing Python Libraries

This Page

  • Show Source

Quick search

Navigation

  • index
  • next |
  • previous |
  • python logo
  • Python »
  • typing documentation »
  • Type System Guides
  • |
© Copyright 2021, The Python Typing Team.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.

The Python Software Foundation is a non-profit corporation. Please donate.

Last updated on None.
Created using Sphinx 4.2.0.