Underlying dependency yarl
not accepting NoneType parameter values?
#1944
Labels
Bug
This is regarding a bug with the library
AsyncClient.search_recent_tweets()
(and probably Tweepy's other methods usingyarl
) does not acceptNoneType
values for certain parameters, despite Tweepy documentation listing them as an acceptable.I have a class method calling
search_recent_tweets
withsince_id
andnext_token
parameter values set toNone
by default.The method later calls
search_recent_tweets()
with the provided parameters, likeWhich results in
yarl
throwing aTypeError
(unless a valid value has been provided tosince_id
andnext_token
).Could this have something to do with
yarl
not supporting boolean values, and that includes NoneTypes too?My current workaround is to create a dict inside the method with the func params and only add
since_id
/next_token
if they're not None, then pass the **params tosearch_recent_tweets()
that way. It's not pretty, but works.The text was updated successfully, but these errors were encountered: