We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf98188 commit 6405e30Copy full SHA for 6405e30
tests/test_utils.py
@@ -313,6 +313,17 @@ class MultiquoteMultiline:
313
class_variables['hi'] = {'comment': '"Hello there""'}
314
self.assertEqual(get_class_variables(MultiquoteMultiline), class_variables)
315
316
+ def test_multiline_argument(self):
317
+ class MultilineArgument:
318
+ bar: str = (
319
+ "This is a multiline argument"
320
+ " that should not be included in the docstring"
321
+ )
322
+ ("""biz baz""")
323
+
324
+ class_variables = {"bar": {"comment": "biz baz"}}
325
+ self.assertEqual(get_class_variables(MultilineArgument), class_variables)
326
327
def test_single_quote_multiline(self):
328
class SingleQuoteMultiline:
329
bar: int = 0
0 commit comments