Skip to content

Commit 8d54f58

Browse files
committed
fix imports for doc/source/conf.py
1 parent 6100909 commit 8d54f58

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

doc/source/conf.py

+13-9
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,20 @@
1010
# All configuration values have a default; values that are commented out
1111
# serve to show the default.
1212

13-
import sys
14-
import os
15-
import inspect
1613
import importlib
14+
import inspect
1715
import logging
16+
import os
17+
import sys
18+
1819
import jinja2
19-
from sphinx.ext.autosummary import _import_by_name
2020
from numpydoc.docscrape import NumpyDocString
21-
21+
from sphinx.ext.autodoc import ( # noqa: E402 isort:skip
22+
AttributeDocumenter,
23+
Documenter,
24+
MethodDocumenter,
25+
)
26+
from sphinx.ext.autosummary import _import_by_name
2227

2328
logger = logging.getLogger(__name__)
2429

@@ -433,10 +438,9 @@
433438
# Add custom Documenter to handle attributes/methods of an AccessorProperty
434439
# eg pandas.Series.str and pandas.Series.dt (see GH9322)
435440

436-
import sphinx
437-
from sphinx.util import rpartition
438-
from sphinx.ext.autodoc import Documenter, MethodDocumenter, AttributeDocumenter
439-
from sphinx.ext.autosummary import Autosummary
441+
import sphinx # noqa: E402 isort:skip
442+
from sphinx.util import rpartition # noqa: E402 isort:skip
443+
from sphinx.ext.autosummary import Autosummary # noqa: E402 isort:skip
440444

441445

442446
class AccessorDocumenter(MethodDocumenter):

0 commit comments

Comments
 (0)