Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Mar 26, 2024
1 parent d3d5613 commit 19bbebe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion attr_utils/annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 1 addition & 5 deletions attr_utils/autoattrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@
#

# stdlib
import warnings
from textwrap import dedent
from typing import TYPE_CHECKING, Any, Dict, List, MutableMapping, Optional, Tuple, Type

Expand All @@ -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()
Expand Down

0 comments on commit 19bbebe

Please sign in to comment.