diff options
Diffstat (limited to 'src/apscheduler/_converters.py')
-rw-r--r-- | src/apscheduler/_converters.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/apscheduler/_converters.py b/src/apscheduler/_converters.py index 3518d44..9e299dd 100644 --- a/src/apscheduler/_converters.py +++ b/src/apscheduler/_converters.py @@ -6,8 +6,6 @@ from enum import Enum from typing import TypeVar from uuid import UUID -from . import abc - TEnum = TypeVar("TEnum", bound=Enum) @@ -46,23 +44,3 @@ def as_enum(enum_class: type[TEnum]) -> Callable[[TEnum | str], TEnum]: return value return converter - - -def as_async_eventbroker( - value: abc.EventBroker | abc.AsyncEventBroker, -) -> abc.AsyncEventBroker: - if isinstance(value, abc.EventBroker): - from apscheduler.eventbrokers.async_adapter import AsyncEventBrokerAdapter - - return AsyncEventBrokerAdapter(value) - - return value - - -def as_async_datastore(value: abc.DataStore | abc.AsyncDataStore) -> abc.AsyncDataStore: - if isinstance(value, abc.DataStore): - from apscheduler.datastores.async_adapter import AsyncDataStoreAdapter - - return AsyncDataStoreAdapter(value) - - return value |