python-pendulum
pendulum
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
fix: allow None for exc_tb in Traveller.__exit__ annotations (#974) CPython calls __exit__(None, None, None) when a with block exits without an exception, so all three parameters must accept None. exc_type and exc_val were already optional on the travellers, but exc_tb was annotated TracebackType without | None, so a type checker infers the traveller is not a valid context manager and reports invalid-context-manager on with pendulum.travel_to(...). Annotate exc_tb as TracebackType | None in BaseTraveller.__exit__ and the time_machine-backed Traveller.__exit__ (the other Traveller subclasses inherit from BaseTraveller). Closes #973
master
14 hours ago
fix: allow None for exc_tb in Traveller.__exit__ annotations CPython calls __exit__(None, None, None) when a with block exits without an exception, so all three parameters must accept None. exc_type and exc_val were already optional on the travellers, but exc_tb was annotated TracebackType without | None, so a type checker infers the traveller is not a valid context manager and reports invalid-context-manager on with pendulum.travel_to(...). Annotate exc_tb as TracebackType | None in BaseTraveller.__exit__ and the time_machine-backed Traveller.__exit__ (the other Traveller subclasses inherit from BaseTraveller). Closes #973
madhavcodez:fix/traveller-exit-type-973
14 hours ago
fix: preserve microsecond precision in Duration for large values Signed-off-by: SAY-5 <say.apm35@gmail.com>
SAY-5:fix-duration-microsecond-precision
1 month ago
Raise a ParserError for empty string in parse() (#965) Previously it raised a confusing `ValueError: year 0 is out of range` error.
master
2 months ago
fix: raise ParserError for empty string in parse()
SAY-5:fix-parse-empty-string
2 months ago
Add Python 3.14 PyPI classifier Support for 3.14 was added in https://github.com/python-pendulum/pendulum/pull/923, but the trove classifier for PyPI is missing. This is just informational stuff.
edgarrmondragon:patch-1
2 months ago
fix: handle OverflowError in timestamp fallbacks
parinporecha:fix/from-timestamp-negative-values
2 months ago
fix: handle negative timestamps in DateTime constructors
parinporecha:fix/from-timestamp-negative-values
2 months ago
Latest Branches
CodSpeed Performance Gauge
0%
fix: allow None for exc_tb in Traveller.__exit__ type annotations
#974
3 days ago
eda43e4
madhavcodez:fix/traveller-exit-type-973
CodSpeed Performance Gauge
0%
fix: preserve microsecond precision in Duration for large values
#969
1 month ago
fa6a987
SAY-5:fix-duration-microsecond-precision
CodSpeed Performance Gauge
0%
fix: raise ParserError for empty string in parse()
#965
2 months ago
4d6aa6a
SAY-5:fix-parse-empty-string
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs