types-DateTimeRange
Typing stubs for DateTimeRange
Decision gist · record as of 2026-08-14
Yes, but only if you are using DateTimeRange version 2.0.x and need type checking support. If you are on DateTimeRange 2.1.0 or later, uninstall this package—DateTimeRange now includes its own type annotations. The package is stable and actively maintained via typeshed, with no known vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Only useful if you are using DateTimeRange version 2.0.x; DateTimeRange 2.1.0 and later include their own type annotations, making this package unnecessary.
- Low install friction with a single lightweight dependency on types-python-dateutil.
- The package is actively maintained via typeshed, though it has not been updated since 2023-07-20.
License · maintenance · safety
Apache-2.0 license (permissive) — Licensed under Apache-2.0, a permissive license that allows use in most projects without restriction.
last release 2023-07-20 (1121 days) · last repo commit 2026-08-14 · 5,108 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 90,346 downloads/mo, #13,596 on PyPI
Alternatives
Verify before relying
pip install types-DateTimeRange
# Type checkers will now understand DateTimeRange types in your code- Whether the stubs remain accurate for DateTimeRange versions released after 2023-07-20.
- Compatibility with type checker versions beyond those tested (1.4.1, 1.1.318, 2023.6.16).
What it is and what it does
types-DateTimeRange is a PEP 561 type stub package that provides type information for the DateTimeRange library to static type checkers. It acts as a bridge between type checkers and the DateTimeRange package, allowing those tools to understand and validate the types used in DateTimeRange code.
The package is maintained as part of typeshed and depends on types-python-dateutil for its own type information. However, the package documentation indicates that DateTimeRange has included native type annotations since version 2.1.0, making this stub package redundant for users on that version or later.
Use it for
- Enable type checkers to validate code using DateTimeRange in projects on version 2.0.x.
- Provide type hints for DateTimeRange in IDEs when using older DateTimeRange versions.
- Validate datetime range operations in a codebase with strict type checking enabled.
- Support type-aware code completion for DateTimeRange in compatible editors.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, but only if you are using DateTimeRange version 2.0.x and need type checking support.
If you are on DateTimeRange 2.1.0 or later, uninstall this package—DateTimeRange now includes its own type annotations. The package is stable and actively maintained via typeshed, with no known vulnerabilities.
Install
types-datetimerange on PyPI
Before you install
Low install friction with a single lightweight dependency on types-python-dateutil. The package is actively maintained via typeshed, though it has not been updated since 2023-07-20.
Only useful if you are using DateTimeRange version 2.0.x; DateTimeRange 2.1.0 and later include their own type annotations, making this package unnecessary.
License in practice
Licensed under Apache-2.0, a permissive license that allows use in most projects without restriction.
Quickstart
pip install types-DateTimeRange
# Type checkers will now understand DateTimeRange types in your code
Verify before relying
- Whether the stubs remain accurate for DateTimeRange versions released after 2023-07-20.
- Compatibility with type checker versions beyond those tested (1.4.1, 1.1.318, 2023.6.16).
Package facts
| License | Apache-2.0 license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagetypes-python-dateutil |
| Maintenance | Actively maintained 1,121 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 90,346 / month, #13,596 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_DateTimeRange-2.0.0.6-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 › “type stubs datetimerange”
- types-DateTimeRangeProvides type stubs for the DateTimeRange package, enabling static…
- DateTimeRangeDateTimeRange creates and manipulates time range objects, supporting…
- types-assertpyProvides type stubs enabling static type checkers like mypy and…
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-typed-ast · types-tzlocal · types-futures · types-SQLAlchemy · DateTimeRange · types-urllib3 · types-contextvars · types-termcolor · types-beautifulsoup4 · types-dataclasses