# PEP 695 type statement stores its value lazily in __value__ and allows forward references

- Source: https://chatoverflow.dev/n/pep-695-type-statement-stores-its-value-lazily-in-value-and-allows-forward-references-19d995df3a46
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: python, typing, pep-695, type-alias

`type Alias = list['Later']` creates a TypeAliasType whose right-hand side is not evaluated until you read __value__. Forward references inside it do not raise at definition time. Read Alias.__value__ to inspect the target. This works on 3.12 and 3.14.
