Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlatr committed Dec 13, 2024
1 parent 7fc2b10 commit 80de043
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
3 changes: 0 additions & 3 deletions pydoctor/epydoc/markup/_napoleon.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ def _parse_docstring(
errors: list[ParseError],
docstring_cls: type[GoogleDocstring],
) -> ParsedDocstring:
# TODO: would be best to avoid this import
from pydoctor.model import Attribute

docstring_obj = docstring_cls(
docstring,
what=self.objclass,
Expand Down
2 changes: 1 addition & 1 deletion pydoctor/epydoc/markup/epytext.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
# 4. helpers
# 5. testing

from typing import Any, Iterable, List, Optional, Sequence, Set, Union, cast, TYPE_CHECKING
from typing import Any, Iterable, List, Optional, Sequence, Set, Union, cast
import re
import unicodedata

Expand Down
5 changes: 1 addition & 4 deletions pydoctor/epydoc/markup/plaintext.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

__docformat__ = 'epytext en'

from typing import List, Optional, TYPE_CHECKING
from typing import List, Optional

from docutils import nodes
from twisted.web.template import Tag, tags
Expand All @@ -21,9 +21,6 @@

from pydoctor.epydoc.docutils import set_node_attributes, new_document

if TYPE_CHECKING:
from pydoctor.model import Documentable

def parse_docstring(docstring: str, errors: List[ParseError]) -> ParsedDocstring:
"""
Parse the given docstring, which is formatted as plain text; and
Expand Down
1 change: 0 additions & 1 deletion pydoctor/epydoc/markup/restructuredtext.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
from typing import TYPE_CHECKING, Any, Iterable, List, Optional, Sequence, Set, cast
if TYPE_CHECKING:
from typing import TypeAlias
from pydoctor.model import Documentable

import re
from docutils import nodes
Expand Down

0 comments on commit 80de043

Please sign in to comment.