Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed Oct 11, 2024
1 parent 0a3a759 commit 40a3ca2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pyanalyze/test_asynq.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ def test_constfuture(self):
from asynq import ConstFuture, asynq

@asynq()
def bad_async_fn():
return ConstFuture(3) # E: task_needs_yield
def bad_async_fn(): # E: task_needs_yield
return ConstFuture(3)

@assert_passes()
def test_async(self):
Expand All @@ -122,8 +122,8 @@ def async_fn():
pass

@asynq()
def bad_async_fn():
return async_fn.asynq() # E: task_needs_yield
def bad_async_fn(): # E: task_needs_yield
return async_fn.asynq()

@assert_passes()
def test_not_yielded(self):
Expand All @@ -132,8 +132,8 @@ def test_not_yielded(self):
from pyanalyze.tests import async_fn

@asynq()
def capybara(oid):
return async_fn.asynq(oid) # E: task_needs_yield
def capybara(oid): # E: task_needs_yield
return async_fn.asynq(oid)

def test_not_yielded_replacement(self):
self.assert_is_changed(
Expand Down

0 comments on commit 40a3ca2

Please sign in to comment.