summaryrefslogtreecommitdiff
path: root/src/apscheduler/marshalling.py
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm@nextday.fi>2022-08-17 00:39:49 +0300
committerAlex Grönholm <alex.gronholm@nextday.fi>2022-08-17 00:39:49 +0300
commitcb56624154fa69ddafb82349a465419aacac1caa (patch)
treedceeec9884916bb77977f09a1f0fabf8b22fc972 /src/apscheduler/marshalling.py
parentde722a1b8985cf6308ba602e8e7b8bab21349448 (diff)
downloadapscheduler-cb56624154fa69ddafb82349a465419aacac1caa.tar.gz
Formatted all code to fit within Black's 88 column limit
Diffstat (limited to 'src/apscheduler/marshalling.py')
-rw-r--r--src/apscheduler/marshalling.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/apscheduler/marshalling.py b/src/apscheduler/marshalling.py
index 0398fa7..357a973 100644
--- a/src/apscheduler/marshalling.py
+++ b/src/apscheduler/marshalling.py
@@ -80,8 +80,9 @@ def callable_to_ref(func: Callable) -> str:
"""
Return a reference to the given callable.
- :raises SerializationError: if the given object is not callable, is a partial(), lambda or
- local function or does not have the ``__module__`` and ``__qualname__`` attributes
+ :raises SerializationError: if the given object is not callable, is a partial(),
+ lambda or local function or does not have the ``__module__`` and
+ ``__qualname__`` attributes
"""
if isinstance(func, partial):
@@ -103,8 +104,8 @@ def callable_from_ref(ref: str) -> Callable:
"""
Return the callable pointed to by ``ref``.
- :raises DeserializationError: if the reference could not be resolved or the looked up object is
- not callable
+ :raises DeserializationError: if the reference could not be resolved or the looked
+ up object is not callable
"""
if ":" not in ref: