Registry / type-stubs / types-datetimerange

types-datetimerange

JSON →
library2.0.0.6pypypiunverified

Typing stubs for DateTimeRange, part of the typeshed project. Provides type hints for the DateTimeRange library. Version 2.0.0.6; updated periodically with typeshed releases.

pip install types-datetimerange
INSTALL
IMPORT
SIG · TYPES-DATETIMERANG
T
types-datetimerange
type-stubspythonv2.0.0.6
Install
1.6s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.0.0.6 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DateTimeRange
from datetimerange-stubs import DateTimeRange
from datetimerange import DateTimeRange

Basic usage of DateTimeRange with typing stubs.

from datetimerange import DateTimeRange # No extra import needed for typing stubs; they are automatically used by mypy/pyright when types-datetimerange is installed. range = DateTimeRange("2023-01-01", "2023-01-31") print(range)
Debug
Known issues
breakingTypes stubs may lag behind DateTimeRange releases; if you encounter type errors, ensure both packages are up-to-date.
fix
pip install --upgrade types-datetimerange DateTimeRange
affects: all
gotchaThese are third-party stubs maintained by typeshed; they may not cover all edge cases. Report missing stubs to typeshed.
fix
Use `# type: ignore` if needed.
affects: all
Upgrade
Version history
2.0.0.6latest on PyPI · released Jul 20, 2023
Audit
Dependencies
DateTimeRangerequiredRuntime dependency that types-datetimerange provides stubs for.
Agent activity
28 hits · last 30 days
node
26
OpenAI (training)
1
Resources
types-datetimerange — pip install types-datetimerange · libregistry