From 007bd07536d1e0dfd5a5b5967943acffb77f24f4 Mon Sep 17 00:00:00 2001 From: Harmon Date: Wed, 2 Jun 2021 18:53:48 -0500 Subject: [PATCH] Rename API.friendships_incoming to API.incoming_friendships --- docs/api.rst | 4 ++-- tweepy/api.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/api.rst b/docs/api.rst index c9a303f..4e26584 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -118,7 +118,7 @@ +------------------------------------------+--------------------------------------+ | `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 diff --git a/tweepy/api.py b/tweepy/api.py index 5c3e7af..3d0a3fc 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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. -- 2.25.1