Created
June 21, 2016 13:33
-
-
Save phouse512/9b8844216de8f3510547f5433fef866b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# python3 test assertListEquals stub. | |
from unittest import TestCase | |
from typing import List | |
class MyTest(TestCase): | |
def test_assert_list(self) -> None: | |
list1 = list() # type: List[None] | |
list2 = list() # type: List[None] | |
self.assertListEqual(list1, list2) | |
# when running mypy with --disallow-untyped-calls, this previously did not pass successfully, it now does with these changes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# python 2.7 test assertListEquals stub. | |
from unittest import TestCase | |
from typing import List | |
class MyTest(TestCase): | |
def test_assert_list(self): | |
# type: () -> None | |
list1 = list() # type: List[None] | |
list2 = list() # type: List[None] | |
self.assertListEqual(list1, list2) | |
# when running mypy with --disallow-untyped-calls, this previously did not pass, it now does. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment