From: Harmon Date: Sat, 23 Oct 2021 16:59:23 +0000 (-0500) Subject: Link to v4.0.0 changelog in FAQ X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0a9da511fb7e326690dbbebd815ff52e1552ebf8;p=tweepy.git Link to v4.0.0 changelog in FAQ --- diff --git a/docs/faq.rst b/docs/faq.rst index 9f5378f..3e94de0 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -65,9 +65,10 @@ Tweepy v4 Why am I getting a :class:`TypeError` about an :class:`API` method taking 1 positional argument but given 2? ------------------------------------------------------------------------------------------------------------ -This and other similar errors are due to Tweepy v4.0.0 changing -:class:`API` methods to no longer accept arbitrary positional arguments. -The 1 positional argument being referred to in the error is ``self``. +This and other similar errors are due to :ref:`Tweepy v4.0.0 ` +changing :class:`API` methods to no longer accept arbitrary positional +arguments. The 1 positional argument being referred to in the error is +``self``. These parameters can be passed as keyword arguments instead. @@ -80,7 +81,8 @@ If you're attempting to import ``StreamListener`` with Tweepy v4, you'll get an :class:`AttributeError` about ``tweepy`` not having a ``StreamListener`` attribute. -This is because Tweepy v4.0.0 merged ``StreamListener`` into :class:`Stream`. +This is because :ref:`Tweepy v4.0.0 ` merged ``StreamListener`` +into :class:`Stream`. To use Tweepy v4, you'll need to update your code to subclass :class:`Stream` instead.