From fbad78d08fcdf5fe55ee748f76b8483a7c3fc71f Mon Sep 17 00:00:00 2001 From: Keewis Date: Tue, 4 Aug 2020 12:21:00 +0200 Subject: [PATCH] check that a "default " notation works with xrefs --- tests/test_ext_napoleon_docstring.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_ext_napoleon_docstring.py b/tests/test_ext_napoleon_docstring.py index 5ff56044a..5fc2b9423 100644 --- a/tests/test_ext_napoleon_docstring.py +++ b/tests/test_ext_napoleon_docstring.py @@ -2036,6 +2036,7 @@ definition_after_normal_text : int "{'F', 'C', 'N or C'}, default 'F'", "int, default: None", "int, default None", + "int, default :obj:`None`", '"ma{icious"', r"'with \'quotes\''", ) @@ -2050,6 +2051,7 @@ definition_after_normal_text : int ["{", "'F'", ", ", "'C'", ", ", "'N or C'", "}", ", ", "default", " ", "'F'"], ["int", ", ", "default", ": ", "None"], ["int", ", " , "default", " ", "None"], + ["int", ", ", "default", " ", ":obj:`None`"], ['"ma{icious"'], [r"'with \'quotes\''"], )