Skip to content

Commit

Permalink
Merge pull request #1584 from crunis/async-streaming
Browse files Browse the repository at this point in the history
Remove async from filter and sample functions
  • Loading branch information
Harmon758 committed May 13, 2021
2 parents ba43a97 + bbe1de9 commit a02e54b
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tweepy/asynchronous/streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,9 @@ async def _connect(self, method, endpoint, params={}, headers=None,
await self.session.close()
await self.on_disconnect()

async def filter(self, *, follow=None, track=None, locations=None,
def filter(self, *, follow=None, track=None, locations=None,
filter_level=None, languages=None, stall_warnings=False):
"""|coroutine|
Filter realtime Tweets
"""Filter realtime Tweets
Parameters
----------
Expand Down Expand Up @@ -234,10 +232,8 @@ async def filter(self, *, follow=None, track=None, locations=None,
)
return self.task

async def sample(self, *, languages=None, stall_warnings=False):
"""|coroutine|
Sample realtime Tweets
def sample(self, *, languages=None, stall_warnings=False):
"""Sample realtime Tweets
Parameters
----------
Expand Down

0 comments on commit a02e54b

Please sign in to comment.