Index: lnt/__init__.py =================================================================== --- lnt/__init__.py +++ lnt/__init__.py @@ -3,4 +3,11 @@ __versioninfo__ = (0, 4, 2) __version__ = '.'.join(map(str, __versioninfo__)) + '.dev0' -__all__ = [] +# lnt module is imported from the setup script before modules are installed so +# modules might not be available. +try: + from typing import Sequence +except Exception: + pass + +__all__ = [] # type: Sequence[str] Index: lnt/external/__init__.py =================================================================== --- lnt/external/__init__.py +++ lnt/external/__init__.py @@ -1 +1,3 @@ -__all__ = [] +from typing import Sequence + +__all__ = [] # type: Sequence[str] Index: lnt/server/__init__.py =================================================================== --- lnt/server/__init__.py +++ lnt/server/__init__.py @@ -1 +1,3 @@ -__all__ = [] +from typing import Sequence + +__all__ = [] # type: Sequence[str] Index: lnt/server/db/__init__.py =================================================================== --- lnt/server/db/__init__.py +++ lnt/server/db/__init__.py @@ -1 +1,3 @@ -__all__ = [] +from typing import Sequence + +__all__ = [] # type: Sequence[str] Index: lnt/server/db/rules/__init__.py =================================================================== --- lnt/server/db/rules/__init__.py +++ lnt/server/db/rules/__init__.py @@ -1 +1,3 @@ -__all__ = [] +from typing import Sequence + +__all__ = [] # type: Sequence[str] Index: lnt/server/reporting/__init__.py =================================================================== --- lnt/server/reporting/__init__.py +++ lnt/server/reporting/__init__.py @@ -1 +1,3 @@ -__all__ = [] +from typing import Sequence + +__all__ = [] # type: Sequence[str] Index: lnt/server/ui/__init__.py =================================================================== --- lnt/server/ui/__init__.py +++ lnt/server/ui/__init__.py @@ -1 +1,3 @@ -__all__ = [] +from typing import Sequence + +__all__ = [] # type: Sequence[str] Index: lnt/testing/util/__init__.py =================================================================== --- lnt/testing/util/__init__.py +++ lnt/testing/util/__init__.py @@ -2,4 +2,6 @@ Miscellaneous utilities for generating test data. """ -__all__ = [] +from typing import Sequence + +__all__ = [] # type: Sequence[str] Index: lnt/util/__init__.py =================================================================== --- lnt/util/__init__.py +++ lnt/util/__init__.py @@ -1,5 +1,6 @@ import logging +from typing import Sequence logger = logging.getLogger("lnt.server.ui.app") -__all__ = [] +__all__ = [] # type: Sequence[str]