Skip to content

Commit

Permalink
Remove redundant imports
Browse files Browse the repository at this point in the history
  • Loading branch information
wenkokke committed May 30, 2023
1 parent 28b4ba9 commit 42b840a
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/talondoc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import socket
import threading
import webbrowser
from http.server import HTTPServer, SimpleHTTPRequestHandler, ThreadingHTTPServer
from http.server import SimpleHTTPRequestHandler, ThreadingHTTPServer
from pathlib import Path
from typing import Any, Optional, Sequence

Expand Down
8 changes: 2 additions & 6 deletions src/talondoc/_autogen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@
import subprocess
from collections.abc import Sequence
from pathlib import Path
from typing import Any, Iterable, Iterator, Optional, Union
from typing import Any, Optional, Union

import jinja2
import jinja2.sandbox
from typing_extensions import Literal

from talondoc.sphinx import (
_canonicalize_talon_package,
_canonicalize_talon_packages,
_canonicalize_vararg,
)
from talondoc.sphinx import _canonicalize_talon_package, _canonicalize_vararg
from talondoc.sphinx.typing import TalonPackage

from .._util.logging import getLogger
Expand Down
2 changes: 0 additions & 2 deletions src/talondoc/_util/builtin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from typing import Sequence

builtin_number_types: tuple[type, ...] = (
int,
float,
Expand Down
2 changes: 1 addition & 1 deletion src/talondoc/analysis/registry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import itertools
import json
from collections.abc import Callable, Iterator, Mapping, Sequence
from dataclasses import asdict, dataclass, fields
from dataclasses import dataclass, fields
from functools import singledispatchmethod
from typing import Any, ClassVar, Optional, Union, cast, overload

Expand Down
1 change: 0 additions & 1 deletion src/talondoc/sphinx/_util/addnodes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from inspect import Parameter, Signature
from typing import Any, TypeVar, Union

import more_itertools
from docutils import nodes
from sphinx import addnodes
from sphinx.locale import _
Expand Down
2 changes: 1 addition & 1 deletion src/talondoc/sphinx/_util/addnodes/fragtable.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Optional, cast
from typing import Any

from docutils import nodes
from sphinx.locale import _
Expand Down
2 changes: 1 addition & 1 deletion src/talondoc/sphinx/directives/command/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
title,
)
from ..._util.addnodes.rule import desc_rule
from ..._util.typing import flag, optional_int, optional_str, optional_strlist
from ..._util.typing import flag, optional_str, optional_strlist
from .abc import TalonDocCommandListDescription

_LOGGER = getLogger(__name__)
Expand Down
2 changes: 0 additions & 2 deletions src/talondoc/sphinx/directives/errors.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import os
from dataclasses import dataclass, field
from pathlib import Path
from typing import Sequence


Expand Down
3 changes: 1 addition & 2 deletions src/talondoc/sphinx/directives/list.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from typing import Mapping, Sequence, cast
from typing import Mapping, Sequence

from docutils import nodes
from sphinx import addnodes
from sphinx.util.typing import OptionSpec
from typing_extensions import override

from ..._util.logging import getLogger
Expand Down

0 comments on commit 42b840a

Please sign in to comment.