Rename API.friendships_incoming to API.incoming_friendships
authorHarmon <Harmon758@gmail.com>
Wed, 2 Jun 2021 23:53:48 +0000 (18:53 -0500)
committerHarmon <Harmon758@gmail.com>
Wed, 2 Jun 2021 23:53:48 +0000 (18:53 -0500)
docs/api.rst
tweepy/api.py

index c9a303f218f4e0946eb890f3c8019f2b0be2f49e..4e265841de611f6289d27ad117a2db0432f766ce 100644 (file)
     +------------------------------------------+--------------------------------------+
     | `GET friends/list`_                      | :meth:`API.friends`                  |
     +------------------------------------------+--------------------------------------+
-    | `GET friendships/incoming`_              | :meth:`API.friendships_incoming`     |
+    | `GET friendships/incoming`_              | :meth:`API.incoming_friendships`     |
     +------------------------------------------+--------------------------------------+
     | `GET friendships/lookup`_                | :meth:`API.lookup_friendships`       |
     +------------------------------------------+--------------------------------------+
@@ -478,7 +478,7 @@ Follow, search, and get users
 
 .. automethod:: API.friends
 
-.. automethod:: API.friendships_incoming
+.. automethod:: API.incoming_friendships
 
 .. automethod:: API.lookup_friendships
 
index 5c3e7af6d7139397e3e64f387a7333979f929334..3d0a3fc811381532ab6c7ff071d3b35e08d196fa 100644 (file)
@@ -2170,8 +2170,8 @@ class API:
 
     @pagination(mode='cursor')
     @payload('ids')
-    def friendships_incoming(self, **kwargs):
-        """friendships_incoming(*, cursor, stringify_ids)
+    def incoming_friendships(self, **kwargs):
+        """incoming_friendships(*, cursor, stringify_ids)
 
         Returns a collection of numeric IDs for every user who has a pending
         request to follow the authenticating user.