Skip to content

Commit

Permalink
Merge pull request #8485 from tk0miya/master
Browse files Browse the repository at this point in the history
Fix flake8 warnings
  • Loading branch information
tk0miya committed Nov 24, 2020
2 parents 9b9e97b + 08752eb commit 143e7fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
8 changes: 1 addition & 7 deletions sphinx/ext/autodoc/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import importlib
import traceback
import warnings
from typing import Any, Callable, Dict, List, Mapping, NamedTuple, Optional, Tuple
from typing import Any, Callable, Dict, List, NamedTuple, Optional, Tuple

from sphinx.pycode import ModuleAnalyzer
from sphinx.util import logging
Expand Down Expand Up @@ -173,12 +173,6 @@ def _getmro(obj: Any) -> Tuple["Type", ...]:
return tuple()


def _getannotations(obj: Any) -> Mapping[str, Any]:
warnings.warn('sphinx.ext.autodoc.importer._getannotations() is deprecated.',
RemovedInSphinx40Warning)
return getannotations(obj)


def get_object_members(subject: Any, objpath: List[str], attrgetter: Callable,
analyzer: ModuleAnalyzer = None) -> Dict[str, Attribute]:
"""Get members and attributes of target object."""
Expand Down
1 change: 1 addition & 0 deletions sphinx/pycode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import re
import tokenize
import warnings
from collections import OrderedDict
from importlib import import_module
from inspect import Signature
Expand Down

0 comments on commit 143e7fe

Please sign in to comment.