From 077ad377bc9ff03783c66839a6f3e0c8add28a14 Mon Sep 17 00:00:00 2001 From: rmfranken Date: Mon, 16 Dec 2024 16:51:47 +0100 Subject: [PATCH] fix:chatGPT's suggestion for docstring formatting --- gimie/parsers/cff.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gimie/parsers/cff.py b/gimie/parsers/cff.py index 2af8676..cfec3bc 100644 --- a/gimie/parsers/cff.py +++ b/gimie/parsers/cff.py @@ -134,13 +134,9 @@ def get_cff_doi(data: bytes) -> Optional[str]: Examples -------- - >>> get_cff_doi(bytes( - "identifiers: - - type: doi - value: 10.5281/zenodo.1234", encoding="utf8")) + >>> get_cff_doi(bytes("identifiers:\n- type: doi\n value: 10.5281/zenodo.1234", encoding="utf8")) 'https://doi.org/10.5281/zenodo.1234' >>> get_cff_doi(bytes("abc: def", encoding="utf8")) - """ try: