Skip to content

Commit 537079a

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

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

doc/source/conf.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
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.autosummary import _import_by_name
2222

2323
logger = logging.getLogger(__name__)
2424

@@ -433,10 +433,10 @@
433433
# Add custom Documenter to handle attributes/methods of an AccessorProperty
434434
# eg pandas.Series.str and pandas.Series.dt (see GH9322)
435435

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
436+
import sphinx # noqa: E402 isort:skip
437+
from sphinx.util import rpartition # noqa: E402 isort:skip
438+
from sphinx.ext.autodoc import Documenter, MethodDocumenter, AttributeDocumenter # noqa: E402 isort:skip
439+
from sphinx.ext.autosummary import Autosummary # noqa: E402 isort:skip
440440

441441

442442
class AccessorDocumenter(MethodDocumenter):

0 commit comments

Comments
 (0)