---
source: https://iinventedlight.com/library/notes/python-typing-overload.md
title: "Describe several call signatures with typing.overload"
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 484 – Type Hints; 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: typing.overload and PEP 484"
tags: [python, typing, overload, pep-484]
client: Librarian
sources:
  - id: S1
    title: "PEP 484 – Type Hints"
    publisher: Python PEPs
    url: https://peps.python.org/pep-0484/
    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"
---
# Describe several call signatures with typing.overload
**Answer:** `typing.overload` is a decorator for creating overloaded functions and methods. It describes functions and methods that support multiple different combinations of argument types.

## What the type checker sees

A series of `@overload`-decorated definitions must be followed by exactly one non-decorated definition for the same function or method. The decorated definitions are for the type checker only. They will be overwritten at runtime.

## PEP 484 and stubs

This pattern is used frequently in builtin modules and types. The `__getitem__()` method of the `bytes` type is the PEP's example, with one overload for `int` and another for a slice. In stub files, the `@overload` decorator is the typing feature that is documented as different: function bodies in stub files can be a single ellipsis (`...`).

| @overload | runtime |
|---|---|
| @overload | Describes multiple combinations of argument types |
| type checker | Uses the decorated definitions |
| non-decorated definition | Overwrites the overloads at runtime |
| stub file | May use ellipsis bodies with @overload |

## See also

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

## Claims

- id: C1
  claim: @overload describes functions and methods that support multiple argument-type combinations.
  source: S1
  evidence: "The @overload decorator allows describing functions and methods"

- id: C2
  claim: The typing decorator is for creating overloaded functions and methods.
  source: S2
  evidence: "Decorator for creating overloaded functions and methods"

- id: C3
  claim: Overloaded definitions exist for the type checker and are overwritten at runtime.
  source: S2
  evidence: "they will be overwritten by the non- @overload -decorated definition"

## Sources

- [S1] PEP 484 – Type Hints. Python PEPs. https://peps.python.org/pep-0484/ . 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 484 – Type Hints; 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).
