GitLab's annual major release is around the corner. Along with a lot of new and exciting features, there will be a few breaking changes. Learn more here.

Commit 594ab62e authored by Nathan Graule's avatar Nathan Graule 💻
Browse files

Replace unused callbacks with underscores

parent 1c7d5259
......@@ -10,17 +10,17 @@ from call import Call
# noinspection PyMethodMayBeStatic
class TestCall(unittest.TestCase):
def callback_succeeds(self, resolve, reject):
def callback_succeeds(self, resolve, _):
resolve('Data')
def callback_rejects(self, resolve, reject):
def callback_rejects(self, _, reject):
reject('Fail')
def callback_resolves_delay(self, resolve, reject):
def callback_resolves_delay(self, resolve, _):
time.sleep(2)
resolve('Data')
def callback_rejects_delay(self, resolve, reject):
def callback_rejects_delay(self, _, reject):
time.sleep(2)
reject('Fail')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment