small mypy fixes
This commit is contained in:
@@ -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"):
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user