From 3f0cc760ac7e9dd9125c0f9fc63b20119e6d17e4 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 21 Oct 2022 20:05:45 -0500 Subject: [PATCH] Update changelog references in FAQ --- docs/faq.rst | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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. -- 2.25.1