Skip to content

Commit ee986d8

Browse files
authored
Merge pull request #89 from NodeJSmith/fix/add_date_annotations
Fix/add date annotations
2 parents 5428746 + 9373691 commit ee986d8

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

.bumpversion.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.bumpversion]
2-
current_version = "0.12.0"
2+
current_version = "0.12.1"
33

44
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(?:-(?P<rc_l>rc)(?P<rc>0|[1-9]\\d*))?"
55

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "otf-api"
3-
version = "0.12.0"
3+
version = "0.12.1"
44
description = "Python OrangeTheory Fitness API Client"
55
authors = [{ name = "Jessica Smith", email = "[email protected]" }]
66
requires-python = ">=3.11"

src/otf_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from otf_api import models
55
from otf_api.auth import OtfUser
66

7-
__version__ = "0.12.0"
7+
__version__ = "0.12.1"
88

99

1010
__all__ = ["Otf", "OtfUser", "models"]

src/otf_api/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,8 @@ def _get_app_config_raw(self) -> dict[str, Any]:
444444

445445
def get_bookings_new(
446446
self,
447-
start_date: datetime | str | None = None,
448-
end_date: datetime | str | None = None,
447+
start_date: datetime | date | str | None = None,
448+
end_date: datetime | date | str | None = None,
449449
exclude_cancelled: bool = True,
450450
) -> list[models.BookingV2]:
451451
"""Get the bookings for the user. If no dates are provided, it will return all bookings

src/otf_api/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def ensure_list(obj: list | Any | None) -> list:
6060
return obj
6161

6262

63-
def ensure_datetime(date_str: str | datetime | None, combine_with: time = MIN_TIME) -> datetime | None:
63+
def ensure_datetime(date_str: str | datetime | date | None, combine_with: time = MIN_TIME) -> datetime | None:
6464
if not date_str:
6565
return None
6666

0 commit comments

Comments
 (0)