Skip to content
masterclass Buddy

Python · Type Alias

Final

typing.Final tells type checkers that a name cannot be reassigned. A Final name in a class also cannot be overridden in a subclass.

Last updated

Since
3.8

Syntax

name: Final = value
name: Final[type] = value

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • ClassVar
  • final
  • TypedDict
  • Annotated

Source: typing — Support for type hints — Python 3.15.2 documentation. Checked 2026-11-03.