summaryrefslogtreecommitdiff
path: root/kombu/abstract.py
diff options
context:
space:
mode:
Diffstat (limited to 'kombu/abstract.py')
-rw-r--r--kombu/abstract.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kombu/abstract.py b/kombu/abstract.py
index 48a917c9..6a689fe9 100644
--- a/kombu/abstract.py
+++ b/kombu/abstract.py
@@ -53,7 +53,7 @@ class Object:
setattr(self, name, None)
def as_dict(self, recurse: bool = False) -> dict[str, Any]:
- def f(obj: Any, type: Callable[[Any], Any]) -> Any:
+ def f(obj: Any, type: Callable[[Any], Any] | None = None) -> Any:
if recurse and isinstance(obj, Object):
return obj.as_dict(recurse=True)
return type(obj) if type and obj is not None else obj