Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit005c7a6

Browse files
authored
Merge pull request#17193 from timhoffm/doc-quote
Document docstring quote convention
2 parentsee2d046 +7e18d8e commit005c7a6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

‎doc/devel/documenting_mpl.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,22 @@ The basic docstring conventions are covered in the `numpydoc docstring guide`_
407407
and theSphinx_ documentation. Some Matplotlib-specific formatting conventions
408408
to keep in mind:
409409

410+
Quote positions
411+
~~~~~~~~~~~~~~~
412+
The quotes for single line docstrings are on the same line (pydocstyle D200)::
413+
414+
def get_linewidth(self):
415+
"""Return the line width in points."""
416+
417+
The quotes for multi-line docstrings are on separate lines (pydocstyle D213)::
418+
419+
def set_linestyle(self, ls):
420+
"""
421+
Set the linestyle of the line.
422+
423+
[...]
424+
"""
425+
410426
Function arguments
411427
~~~~~~~~~~~~~~~~~~
412428
Function arguments and keywords within docstrings should be referred to

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp