Skip to content

Commit

Permalink
Update changelog references in FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Oct 22, 2022
1 parent 7f0d587 commit 3f0cc76
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <Version 4.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 <Version 4.0.0 (2021-09-25)>` 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.

Expand All @@ -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 <Version 4.0.0>` removed ``API.me``.
This is because :ref:`Tweepy v4.0.0 <Version 4.0.0 (2021-09-25)>` removed
``API.me``.

Instead, you can use :meth:`API.verify_credentials`.

Expand All @@ -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 <Version 4.0.0>` merged ``StreamListener``
into :class:`Stream`.
This is because :ref:`Tweepy v4.0.0 <Version 4.0.0 (2021-09-25)>` merged
``StreamListener`` into :class:`Stream`.

To use Tweepy v4, you'll need to update your code to subclass :class:`Stream`
instead.
Expand Down

0 comments on commit 3f0cc76

Please sign in to comment.