Skip to content

Commit

Permalink
fix typo, prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
ariebovenberg committed Jul 27, 2024
1 parent b027f79 commit 4d2a88d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
🚀 Changelog
============

0.6.6 (2024-07-27)
------------------

- Fix potential memory leak in ``.now()`` if ``time-machine`` is used

0.6.5 (2024-07-27)
------------------

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors = [
{name = "Arie Bovenberg", email = "[email protected]"},
]
readme = "README.md"
version = "0.6.5"
version = "0.6.6"
description = "Modern datetime library for Python, written in Rust"
requires-python = ">=3.9"
classifiers = [
Expand Down
14 changes: 7 additions & 7 deletions pysrc/whenever/_pywhenever.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# - It saves some overhead
from __future__ import annotations

__version__ = "0.6.5"
__version__ = "0.6.6"

import enum
import re
Expand Down Expand Up @@ -3355,7 +3355,7 @@ def __init__(
tz: str,
disambiguate: Disambiguate = "raise",
) -> None:
self._py_dt = _resolve_ambuguity(
self._py_dt = _resolve_ambiguity(
_datetime(
year,
month,
Expand Down Expand Up @@ -3474,7 +3474,7 @@ def replace_date(
self, date: Date, /, disambiguate: Disambiguate
) -> ZonedDateTime:
return self._from_py_unchecked(
_resolve_ambuguity(
_resolve_ambiguity(
_datetime.combine(date._py_date, self._py_dt.timetz()).replace(
fold=_as_fold(disambiguate)
),
Expand All @@ -3489,7 +3489,7 @@ def replace_time(
self, time: Time, /, disambiguate: Disambiguate
) -> ZonedDateTime:
return self._from_py_unchecked(
_resolve_ambuguity(
_resolve_ambiguity(
_datetime.combine(
self._py_dt, time._py_time, self._py_dt.tzinfo
).replace(fold=_as_fold(disambiguate)),
Expand All @@ -3512,7 +3512,7 @@ def replace(
kwargs["tzinfo"] = ZoneInfo(tz)
nanos = _pop_nanos_kwarg(kwargs, self._nanos)
return self._from_py_unchecked(
_resolve_ambuguity(
_resolve_ambiguity(
self._py_dt.replace(fold=_as_fold(disambiguate), **kwargs),
kwargs.get("tzinfo", self._py_dt.tzinfo),
disambiguate,
Expand Down Expand Up @@ -4331,7 +4331,7 @@ def assume_tz(
ZonedDateTime(2020-08-15 23:12:00+02:00[Europe/Amsterdam])
"""
return ZonedDateTime._from_py_unchecked(
_resolve_ambuguity(
_resolve_ambiguity(
self._py_dt.replace(
tzinfo=(zone := ZoneInfo(tz)), fold=_as_fold(disambiguate)
),
Expand Down Expand Up @@ -4447,7 +4447,7 @@ class ImplicitlyIgnoringDST(TypeError):
)


def _resolve_ambuguity(
def _resolve_ambiguity(
dt: _datetime, zone: ZoneInfo, disambiguate: Disambiguate
) -> _datetime:
dt_utc = dt.astimezone(_UTC)
Expand Down

0 comments on commit 4d2a88d

Please sign in to comment.