types-freezegun
Typing stubs for freezegun
Decision gist · record as of 2026-08-14
No, unless you are locked into freezegun < 1.2.1. For any modern freezegun installation (1.2.1+), uninstall this package and rely on freezegun's built-in type stubs instead. The package has not been updated since 2022-06-09 and the project itself recommends against using it with current freezegun versions.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Only needed if using freezegun < 1.2.1; freezegun 1.2.1+ includes its own type stubs, making this package redundant.
- Low install friction with no runtime dependencies.
- However, the package is outdated: freezegun has included its own type annotations since version 1.2.1, making this stub package unnecessary for modern freezegun installations.
License · maintenance · safety
Apache-2.0 license (permissive) — Licensed under Apache-2.0, a permissive open-source license with no significant restrictions on use or redistribution.
last release 2022-06-09 (1527 days) · last repo commit 2026-08-14 · 5,108 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,888,281 downloads/mo, #2,841 on PyPI
Alternatives
Verify before relying
pip install types-freezegun
# Then use freezegun normally; type checkers will resolve types automatically
import freezegun
with freezegun.freeze_time():
pass- Whether this stub package is still maintained or if typeshed updates are being backported to PyPI
- Compatibility with the latest freezegun versions and whether the stubs remain accurate
- Current status of freezegun's bundled type annotations and how they compare to these stubs
What it is and what it does
This is a PEP 561 type stub package that provides type information for the freezegun time-mocking library. It allows static type checkers like mypy, PyCharm, and pytype to understand and validate the types used in freezegun code without needing runtime execution. The stubs are sourced from the typeshed project, a centralized repository of type definitions for the Python ecosystem.
However, this package is largely obsolete: freezegun has shipped with its own type annotations since version 1.2.1, making separate stubs unnecessary for modern installations. The package has not been updated since 2022-06-09, and the description explicitly recommends uninstalling it if you use freezegun 1.2.1 or newer.
Use it for
- Type-checking legacy projects that depend on freezegun versions older than 1.2.1 without built-in type support.
- Providing type hints in environments where freezegun's bundled stubs are unavailable or not recognized by the type checker.
- Validating freezegun usage in codebases that require strict type checking before freezegun added native type annotations.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No, unless you are locked into freezegun < 1.2.1.
For any modern freezegun installation (1.2.1+), uninstall this package and rely on freezegun's built-in type stubs instead. The package has not been updated since 2022-06-09 and the project itself recommends against using it with current freezegun versions.
Install
types-freezegun on PyPI
Before you install
Low install friction with no runtime dependencies. However, the package is outdated: freezegun has included its own type annotations since version 1.2.1, making this stub package unnecessary for modern freezegun installations. Last release was 2022-06-09, significantly in the past.
Only needed if using freezegun < 1.2.1; freezegun 1.2.1+ includes its own type stubs, making this package redundant.
License in practice
Licensed under Apache-2.0, a permissive open-source license with no significant restrictions on use or redistribution.
Quickstart
pip install types-freezegun
# Then use freezegun normally; type checkers will resolve types automatically
import freezegun
with freezegun.freeze_time():
pass
Verify before relying
- Whether this stub package is still maintained or if typeshed updates are being backported to PyPI
- Compatibility with the latest freezegun versions and whether the stubs remain accurate
- Current status of freezegun's bundled type annotations and how they compare to these stubs
Package facts
| License | Apache-2.0 license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 1,527 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,888,281 / month, #2,841 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Typing :: Stubs Only |
Evidence: types_freezegun-1.1.10-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “freezegun type stubs”
- types-freezegunProvides type stubs for the freezegun time-mocking library, enabling…
- pytest-freezegunpytest-freezegun provides a pytest plugin that freezes time in tests…
- pytest-freezerpytest-freezer provides a pytest fixture that freezes system time…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also types-filelock · types-Werkzeug · types-orjson · types-tornado · types-Jinja2 · types-DateTimeRange · types-futures · types-attrs · types-Flask · freezegun