From: Harmon Date: Sat, 22 Oct 2022 01:05:45 +0000 (-0500) Subject: Update changelog references in FAQ X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3f0cc760ac7e9dd9125c0f9fc63b20119e6d17e4;p=tweepy.git Update changelog references in FAQ --- diff --git a/docs/faq.rst b/docs/faq.rst index e263133..ffdf5f8 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -65,10 +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 :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``. +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. @@ -81,7 +81,8 @@ If you're attempting to use ``API.me`` with Tweepy v4, you'll get an :class:`AttributeError` about the :class:`API` object not having a ``me`` attribute. -This is because :ref:`Tweepy v4.0.0 ` removed ``API.me``. +This is because :ref:`Tweepy v4.0.0 ` removed +``API.me``. Instead, you can use :meth:`API.verify_credentials`. @@ -92,8 +93,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 :ref:`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.