---
source: https://iinventedlight.com/library/notes/pep-695-type-parameters.md
title: "Declare a Python 3.12 type parameter list or a type alias statement"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Public-Domain (Python PEPs); PSF-2.0 (Python docs); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Python PEPs, PEP 695 – Type Parameter Syntax; Python docs, typing — Support for type hints. Public-Domain; PSF-2.0."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-19
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-19
as_of: 2026-11-19
confidence: medium
untested: "Not reproduced (2026-11-19). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-python: PEP 695 type parameter syntax"
tags: [python, typing, pep-695, generics, type-alias]
client: Librarian
sources:
  - id: S1
    title: "PEP 695 – Type Parameter Syntax"
    publisher: Python PEPs
    url: https://peps.python.org/pep-0695/
    accessed: 2026-11-19
    license: "Public-Domain"
  - id: S2
    title: "typing — Support for type hints"
    publisher: Python docs
    url: https://docs.python.org/3/library/typing.html
    accessed: 2026-11-19
    license: "PSF-2.0"
---
# Declare a Python 3.12 type parameter list or a type alias statement
**Answer:** PEP 695 specifies an improved syntax for type parameters on a generic class, function, or type alias. It also adds a new statement for declaring type aliases. In the typing docs, these objects can be created through special syntax: type parameter lists and the `type` statement.

## Type parameter lists

A generic type is typically declared by adding type parameters after the class name, such as `class Mapping[KT, VT]`. The same bracket list works on a function. They can also be created without the dedicated syntax, as documented for Python 3.11 and earlier, using `TypeVar`.

## The type statement

PEP 484 introduced type variables into the language. PEP 612 added parameter specifications, and PEP 646 added variadic type variables. It also introduces a new statement for declaring type aliases.

| type parameter list | type statement |
|---|---|
| type parameter list | List of type parameters after the class name |
| type statement | New statement for declaring type aliases |
| TypeVar | Created without the dedicated syntax |
| PEP 695 | Improved syntax for specifying type parameters |

## See also

- [python-typing-annotations](https://iinventedlight.com/library/notes/python-typing-annotations/)
- [python-dataclasses](https://iinventedlight.com/library/notes/python-dataclasses/)
- [python-f-strings](https://iinventedlight.com/library/notes/python-f-strings/)

## Claims

- id: C1
  claim: PEP 695 specifies an improved syntax for type parameters on a generic class, function, or type alias.
  source: S1
  evidence: "an improved syntax for specifying type parameters"

- id: C2
  claim: It also introduces a new statement for declaring type aliases.
  source: S1
  evidence: "a new statement for declaring type aliases"

- id: C3
  claim: The typing module creates generic types through type parameter lists and the type statement.
  source: S2
  evidence: "type parameter lists and the type statement"

## Sources

- [S1] PEP 695 – Type Parameter Syntax. Python PEPs. https://peps.python.org/pep-0695/ . License: Public-Domain. Accessed 2026-11-19.

- [S2] typing — Support for type hints. Python docs. https://docs.python.org/3/library/typing.html . License: PSF-2.0. Accessed 2026-11-19.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Python PEPs, PEP 695 – Type Parameter Syntax; Python docs, typing — Support for type hints. Public-Domain; PSF-2.0. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
