Python: remove leftover arg in test code

This commit is contained in:
Rasmus Wriedt Larsen
2020-03-24 11:49:08 +01:00
parent 5ec0716cb0
commit 3ed48aae4c

View File

@@ -11,14 +11,14 @@ class Foo(object):
@some_decorator
@classmethod
def problem_through_instance(cls, new_arg):
def problem_through_instance(cls):
# Problem is that our analysis says that 'cls' can point to EITHER the
# Class Foo (correct) or an instance of Foo (wrong)
check(cls)
@some_decorator
@classmethod
def problem_through_class(cls, new_arg):
def problem_through_class(cls):
check(cls) # same as above
# We need to call the methods before our analysis works