another docstring

This commit is contained in:
Jean-Paul Calderone 2023-07-19 11:54:18 -04:00
parent c1c0b60862
commit 72c18579e2

View File

@ -267,6 +267,13 @@ def merge_config(
left: Optional[ListenerConfig],
right: Optional[ListenerConfig],
) -> Optional[ListenerConfig]:
"""
Merge two listener configurations into one configuration representing
both of them.
If either is ``None`` then the result is ``None``. This supports the
"disable listeners" functionality.
"""
if left is None or right is None:
return None
return ListenerConfig(