small mypy fixes

This commit is contained in:
Anthony Sottile
2019-06-06 09:13:02 -07:00
parent 450d264623
commit ccd87f9e80
7 changed files with 8 additions and 21 deletions

View File

@@ -26,10 +26,10 @@ def test_getfuncargnames():
assert fixtures.getfuncargnames(h) == ("arg1",)
def h(arg1, arg2, arg3="hello"):
def j(arg1, arg2, arg3="hello"):
pass
assert fixtures.getfuncargnames(h) == ("arg1", "arg2")
assert fixtures.getfuncargnames(j) == ("arg1", "arg2")
class A:
def f(self, arg1, arg2="hello"):

View File

@@ -235,7 +235,7 @@ class TestRaises:
int("asdf")
def test_raises_exception_looks_iterable(self):
class Meta(type(object)):
class Meta(type):
def __getitem__(self, item):
return 1 / 0