Skip to content

Commit 4ec2ed5

Browse files
'[pre-commit.ci 🤖] Apply code format tools to PR'
1 parent 7b2eb7a commit 4ec2ed5

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

‎numpydoc/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This package provides the numpydoc Sphinx extension for handling docstrings
33
formatted according to the NumPy documentation format.
44
"""
5+
56
from ._version import __version__
67

78

‎numpydoc/__main__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Implementing `python -m numpydoc` functionality.
33
"""
4+
45
import sys
56
import argparse
67
import ast

‎numpydoc/docscrape.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Extract reference documentation from the NumPy source tree.
22
33
"""
4+
45
import inspect
56
import textwrap
67
import re

‎numpydoc/docscrape_sphinx.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -373,9 +373,11 @@ def __str__(self, indent=0, func_role="obj"):
373373
"notes": self._str_section("Notes"),
374374
"references": self._str_references(),
375375
"examples": self._str_examples(),
376-
"attributes": self._str_param_list("Attributes", fake_autosummary=True)
377-
if self.attributes_as_param_list
378-
else self._str_member_list("Attributes"),
376+
"attributes": (
377+
self._str_param_list("Attributes", fake_autosummary=True)
378+
if self.attributes_as_param_list
379+
else self._str_member_list("Attributes")
380+
),
379381
"methods": self._str_member_list("Methods"),
380382
}
381383
ns = {k: "\n".join(v) for k, v in ns.items()}

‎numpydoc/numpydoc.py

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
.. [1] https://github.com/numpy/numpydoc
1717
1818
"""
19+
1920
from copy import deepcopy
2021
import re
2122
import pydoc

0 commit comments

Comments
 (0)