skillfed

types-pytz

Typing stubs for pytz

types-pytz Permissive license Apache-2.0 Active 37 v2026.3.1.20260727 released

Install

types-pytz on PyPI

pip

pip install types-pytz

uv

uv add types-pytz

poetry

poetry add types-pytz

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance actively maintained — 17 days since the last release
Last repo commit
First released
Popularity one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13)
Known vulnerabilities none known (OSV.dev, checked 2026-08-13)

Evidence: types_pytz-2026.3.1.20260727-py3-none-any.whl

Programming Language :: Python :: 3Typing :: Stubs Only

About types-pytz

from the package's own PyPI description — quoted content, verbatim

Typing stubs for pytz

This is a type stub package for the pytz package. It can be used by type checkers to check code that uses pytz. This version of types-pytz aims to provide accurate annotations for pytz==2026.3.post1.

This package is part of the typeshed project. All fixes for types and metadata should be contributed there. See the README for more details. The source for this package can be found in the stubs/pytz directory.

This package was tested with the following type checkers: * mypy 2.3.0 * pyright 1.1.411

It was generated from typeshed commit 41308b88d4dc51e8d165a8839c2f0f12bdf43173.

Read as markdown · JSON record · Source repository · Homepage

AI interpretation — verify before relying

AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page

Provides type hints for the pytz timezone library, enabling static type checkers like mypy and pyright to validate code that uses pytz.

Installs with no dependencies and maintains active release cadence; latest release 17 days ago with active repository status.

Licensed under Apache-2.0 (permissive), allowing use in proprietary and open-source projects with minimal restrictions.

Usage

pip install types-pytz

# Type checkers will now understand types when working with timezone code

Requires Python 3.10 or later; intended for use with type checkers (mypy 2.3.0, pyright 1.1.411), not runtime functionality.

Verdict: A lightweight, actively maintained type stub package with zero dependencies and permissive licensing. Recent release history and active repository make it a low-friction addition to type-checking workflows.

Needs verification

  • Whether the underlying pytz package must be installed separately for this stub to function in type checking
  • Compatibility with type checkers beyond mypy 2.3.0 and pyright 1.1.411
pytz type stubspytz typing annotationstype checking timezone codemypy type stubspython timezone type hintstypeshed stubsstatic type checking

Similar packages