diff --git a/attr_utils/annotations.py b/attr_utils/annotations.py index 94bf1f9..985fed9 100644 --- a/attr_utils/annotations.py +++ b/attr_utils/annotations.py @@ -135,7 +135,7 @@ class SomeClass: # 3rd party from typing_inspect import get_origin # type: ignore -if TYPE_CHECKING or attr_utils._docs: +if TYPE_CHECKING or attr_utils._docs: # pragma: no cover # 3rd party from sphinx.application import Sphinx from sphinx_toolbox.utils import SphinxExtMetadata diff --git a/attr_utils/autoattrs.py b/attr_utils/autoattrs.py index 046c287..32ced05 100644 --- a/attr_utils/autoattrs.py +++ b/attr_utils/autoattrs.py @@ -97,7 +97,6 @@ # # stdlib -import warnings from textwrap import dedent from typing import TYPE_CHECKING, Any, Dict, List, MutableMapping, Optional, Tuple, Type @@ -118,16 +117,13 @@ if TYPE_CHECKING: # 3rd party - from docutils.statemachine import StringList + from docutils.statemachine import StringList # type: ignore[import] def _documenter_add_content( self: Documenter, more_content: Optional["StringList"], ) -> None: - """ - Add content from docstrings, attribute documentation and user. - """ # set sourcename and add content from attribute documentation sourcename = self.get_sourcename()