Skip to content

Literal, Enum, and TypedDict

Coming soon

Constrain choices with Literal, categorize values with Enum, and type dictionary shapes.

You'll be able to

  • Constrain arguments to exact values with typing.Literal
  • Define domain enumerations using enum.Enum
  • Specify dictionary keys and value types using typing.TypedDict

Coming soon

This lesson is being written. The Telegram channel announces new lessons as they open.