From 3ab33080dd00c3dc7f95692fe764bdf6a108d92c Mon Sep 17 00:00:00 2001 From: Harmon Date: Tue, 23 Feb 2021 21:11:00 -0600 Subject: [PATCH] Fix reference to usernames parameter in Client.get_users --- tweepy/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/client.py b/tweepy/client.py index 9e41f72..abcb4c8 100644 --- a/tweepy/client.py +++ b/tweepy/client.py @@ -167,7 +167,7 @@ class Client: https://developer.twitter.com/en/docs/twitter-api/users/lookup/api-reference/get-users-by https://developer.twitter.com/en/docs/twitter-api/users/lookup/api-reference/get-users-by-username-username """ - if ids is not None and username is not None: + if ids is not None and usernames is not None: raise TypeError("Expected IDs or usernames, not both") route = "/2/users" -- 2.25.1