From 515471549e6c14ad4ec13b0b3cd1707ec5524ec5 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 29 Jul 2016 20:26:29 -0700 Subject: [PATCH] api: Annotate setup.py and fix import. --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 2bf1da5..b51c922 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- from __future__ import print_function -from typing import Any, Generator, List, Tuple +if False: from typing import Any, Generator, List, Tuple import os import sys @@ -10,6 +10,7 @@ import sys import itertools def version(): + # type: () -> str version_py = os.path.join(os.path.dirname(__file__), "zulip", "__init__.py") with open(version_py) as in_handle: version_line = next(itertools.dropwhile(lambda x: not x.startswith("__version__"), @@ -46,7 +47,7 @@ package_info = dict( "examples/print-messages", "examples/recent-messages"])] + \ list(recur_expand('share/zulip', 'integrations/')), scripts=["bin/zulip-send"], -) +) # type: Dict[str, Any] setuptools_info = dict( install_requires=['requests>=0.12.1',