From 44a1d2b66cd6b3b8eb390ad3f53938096d9ec22f Mon Sep 17 00:00:00 2001 From: tarsil Date: Fri, 23 Jun 2023 18:02:28 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=9D=20Release=200.3.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- asyncz/__init__.py | 2 +- asyncz/contrib/esmerald/scheduler.py | 6 +++--- docs/release-notes.md | 6 ++++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/asyncz/__init__.py b/asyncz/__init__.py index 493f741..260c070 100644 --- a/asyncz/__init__.py +++ b/asyncz/__init__.py @@ -1 +1 @@ -__version__ = "0.3.0" +__version__ = "0.3.1" diff --git a/asyncz/contrib/esmerald/scheduler.py b/asyncz/contrib/esmerald/scheduler.py index bf866ad..8cafb1a 100644 --- a/asyncz/contrib/esmerald/scheduler.py +++ b/asyncz/contrib/esmerald/scheduler.py @@ -1,7 +1,7 @@ import warnings from datetime import datetime from datetime import timezone as dtimezone -from typing import TYPE_CHECKING, Any, Dict, Optional +from typing import TYPE_CHECKING, Any, Dict, Optional, Union from asyncz.schedulers.types import SchedulerType from asyncz.triggers.types import TriggerType @@ -38,8 +38,8 @@ def __init__( app: Optional["Esmerald"] = None, scheduler_class: Optional["SchedulerType"] = None, tasks: Optional[Dict[str, str]] = None, - timezone: Optional[dtimezone] = None, - configurations: Optional[Dict[str, str]] = None, + timezone: Optional[Union[dtimezone, str]] = None, + configurations: Optional[Dict[str, Dict[str, str]]] = None, ) -> None: self.app = app self.tasks = tasks diff --git a/docs/release-notes.md b/docs/release-notes.md index 2b7ad3e..8e0b927 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,5 +1,11 @@ # Release Notes +## 0.3.1 + +### Fixed + +- `EsmeraldScheduler` attribute update (configurations and timezone). + ## 0.3.0 ### Changed