As tox didn't exits before to run unit tests presented as doctests, the
included doctest hadn't failed before, because of it's wrong format.
I adjusted the format so that the doctest passes.
Fixes: https://tracker.ceph.com/issues/40363
Signed-off-by: Stephan Müller <smueller@suse.com>
def merge_dicts(*args):
# type: (dict) -> dict
"""
- >>> assert merge_dicts({1:2}, {3:4}) == {1:2, 3:4}
- You can also overwrite keys:
- >>> assert merge_dicts({1:2}, {1:4}) == {1:4}
+ >>> merge_dicts({1:2}, {3:4})
+ {1: 2, 3: 4}
+
+ You can also overwrite keys:
+ >>> merge_dicts({1:2}, {1:4})
+ {1: 4}
+
:rtype: dict[str, Any]
"""
ret = {}