requirements: Update mypy to latest version.

This involves fixing the mypy annotations in one file
This commit is contained in:
Tim Abbott 2017-10-27 16:57:22 -07:00
parent e102c42e0f
commit bfa148ab39
5 changed files with 9 additions and 9 deletions

View File

@ -77,11 +77,11 @@ jmespath==0.9.3 # via boto3, botocore
jsonpickle==0.9.5 # via aws-xray-sdk
lxml==4.1.0
markdown-include==0.5.1
markdown==2.6.9
markdown==2.6.9 # via markdown-include
markupsafe==1.0
mock==2.0.0
moto==1.1.24
mypy==0.530
mypy==0.540
mypy_extensions==0.3.0
ndg-httpsclient==0.4.3
oauth2client==4.1.2

View File

@ -1,4 +1,4 @@
# After editing this file, you MUST afterward run
# /tools/update-locked-requirements to update requirements/dev_lock.txt.
# See requirements/README.md for more detail.
mypy==0.530
mypy==0.540

View File

@ -53,7 +53,7 @@ jedi==0.10.2 # via ipython
jinja2==2.9.6
lxml==4.1.0
markdown-include==0.5.1
markdown==2.6.9
markdown==2.6.9 # via markdown-include
markupsafe==1.0
mock==2.0.0
mypy_extensions==0.3.0
@ -76,7 +76,7 @@ pyasn1-modules==0.1.5
pyasn1==0.3.7
pycparser==2.18 # via cffi
pycrypto==2.6.1
pygments==2.2.0
pygments==2.2.0 # via ipython
pyjwt==1.5.3
pyldap==2.4.37
pylibmc==1.5.2

View File

@ -1,2 +1,2 @@
ZULIP_VERSION = "1.7.0+git"
PROVISION_VERSION = '10.9'
PROVISION_VERSION = '11.0'

View File

@ -238,7 +238,7 @@ def process_instrumented_calls(func):
for call in test_helpers.INSTRUMENTED_CALLS:
func(call)
SerializedSubsuite = Tuple[Type[Iterable[TestCase]], List[str]]
SerializedSubsuite = Tuple[Type['TestSuite'], List[str]]
SubsuiteArgs = Tuple[Type['RemoteTestRunner'], int, SerializedSubsuite, bool]
def run_subsuite(args):
@ -514,9 +514,9 @@ def serialize_suite(suite):
return type(suite), get_test_names(suite)
def deserialize_suite(args):
# type: (Tuple[Type[Iterable[TestCase]], List[str]]) -> Iterable[TestCase]
# type: (Tuple[Type[TestSuite], List[str]]) -> TestSuite
suite_class, test_names = args
suite = suite_class() # type: ignore # Gives abstract type error.
suite = suite_class()
tests = TestLoader().loadTestsFromNames(test_names)
for test in get_tests_from_suite(tests):
suite.addTest(test)