summaryrefslogtreecommitdiff
path: root/logilab/common/ureports/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'logilab/common/ureports/__init__.py')
-rw-r--r--logilab/common/ureports/__init__.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/logilab/common/ureports/__init__.py b/logilab/common/ureports/__init__.py
index a539150..cf6e098 100644
--- a/logilab/common/ureports/__init__.py
+++ b/logilab/common/ureports/__init__.py
@@ -24,11 +24,12 @@ __docformat__ = "restructuredtext en"
import sys
+from typing import Any, Optional, Union, List, Generator, Tuple, Callable, TextIO
+
from logilab.common.compat import StringIO
from logilab.common.textutils import linesep
from logilab.common.tree import VNode
-from logilab.common.ureports.nodes import Table, List as NodeList
-from typing import Any, Optional, Union, List, Generator, Tuple, Callable, TextIO
+from logilab.common.ureports.nodes import Table, Section, Link, Paragraph, Title, Text
def get_nodes(node, klass):
@@ -208,10 +209,5 @@ class BaseWriter(object):
del self.writeln
-# mypy error: Incompatible import of "Table" (imported name has type
-# mypy error: "Type[logilab.common.ureports.nodes.Table]", local name has type
-# mypy error: "Type[logilab.common.table.Table]")
-# this will be cleaned when the "*" will be removed
-from logilab.common.ureports.nodes import * # type: ignore
-from logilab.common.ureports.text_writer import TextWriter
-from logilab.common.ureports.html_writer import HTMLWriter
+from logilab.common.ureports.text_writer import TextWriter # noqa
+from logilab.common.ureports.html_writer import HTMLWriter # noqa