We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lots of warnings: SyntaxWarning: invalid escape sequence '['
When I upgraded Python from 3.12.0 to 3.12.3.
No response
Remove these warning messages
/Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:301: SyntaxWarning: invalid escape sequence '\[' """home_timeline(*, count, since_id, max_id, trim_user, \ /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:341: SyntaxWarning: invalid escape sequence '\[' """mentions_timeline(*, count, since_id, max_id, trim_user, \ /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:376: SyntaxWarning: invalid escape sequence '\[' """user_timeline(*, user_id, screen_name, since_id, count, max_id, \ /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:426: SyntaxWarning: invalid escape sequence '\[' """get_favorites(*, user_id, screen_name, count, since_id, max_id, \ /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:467: SyntaxWarning: invalid escape sequence '\[' """lookup_statuses(id, *, include_entities, trim_user, map, \ /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:599: SyntaxWarning: invalid escape sequence '\[' """get_retweeter_ids(id, *, count, cursor, stringify_ids) /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:634: SyntaxWarning: invalid escape sequence '\[' """get_retweets(id, *, count, trim_user) /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:667: SyntaxWarning: invalid escape sequence '\[' """get_retweets_of_me(*, count, since_id, max_id, trim_user, \ /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:1055: SyntaxWarning: invalid escape sequence '\ ' """search_tweets(q, *, geocode, lang, locale, result_type, count, \ /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:1157: SyntaxWarning: invalid escape sequence '\[' """get_lists(*, user_id, screen_name, reverse) /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:1202: SyntaxWarning: invalid escape sequence '\[' """get_list_members(*, list_id, slug, owner_screen_name, owner_id, \ /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:1299: SyntaxWarning: invalid escape sequence '\[' """get_list_memberships(*, user_id, screen_name, count, cursor, \ /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:1342: SyntaxWarning: invalid escape sequence '\[' """get_list_ownerships(*, user_id, screen_name, count, cursor) /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:1409: SyntaxWarning: invalid escape sequence '\[' """list_timeline( \ /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:1460: SyntaxWarning: invalid escape sequence '\[' """get_list_subscribers( \ /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:1559: SyntaxWarning: invalid escape sequence '\[' """get_list_subscriptions(*, user_id, screen_name, count, cursor) /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:1927: SyntaxWarning: invalid escape sequence '\[' """get_follower_ids(*, user_id, screen_name, cursor, stringify_ids, \ /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:1966: SyntaxWarning: invalid escape sequence '\[' """get_followers(*, user_id, screen_name, cursor, count, skip_status, \ /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:2008: SyntaxWarning: invalid escape sequence '\[' """get_friend_ids(*, user_id, screen_name, cursor, stringify_ids, \ /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:2047: SyntaxWarning: invalid escape sequence '\[' """get_friends(*, user_id, screen_name, cursor, count, skip_status, \ /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:2089: SyntaxWarning: invalid escape sequence '\[' """incoming_friendships(*, cursor, stringify_ids) /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:2120: SyntaxWarning: invalid escape sequence '\[' """lookup_friendships(*, screen_name, user_id) /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:2149: SyntaxWarning: invalid escape sequence '\[' """no_retweets_friendships(*, stringify_ids) /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:2176: SyntaxWarning: invalid escape sequence '\[' """outgoing_friendships(*, cursor, stringify_ids) /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:2243: SyntaxWarning: invalid escape sequence '\[' """lookup_users(*, screen_name, user_id, include_entities, tweet_mode) /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:2290: SyntaxWarning: invalid escape sequence '\[' """search_users(q, *, page, count, include_entities) /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:2500: SyntaxWarning: invalid escape sequence '\[' """get_saved_searches() /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:2814: SyntaxWarning: invalid escape sequence '\[' """get_blocked_ids(*, stringify_ids, cursor) /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:2846: SyntaxWarning: invalid escape sequence '\[' """get_blocks(*, include_entities, skip_status, cursor) /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:2880: SyntaxWarning: invalid escape sequence '\[' """get_muted_ids(*, stringify_ids, cursor) /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:2911: SyntaxWarning: invalid escape sequence '\[' """get_mutes(*, cursor, include_entities, skip_status) /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:3126: SyntaxWarning: invalid escape sequence '\[' """get_direct_messages(*, count, cursor) /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:3788: SyntaxWarning: invalid escape sequence '\[' """reverse_geocode(lat, long, *, accuracy, granularity, max_results) /Users/xxx/Library/Caches/pypoetry/virtualenvs/abc-ODEsg0f_-py3.12/lib/python3.12/site-packages/tweepy/api.py:3829: SyntaxWarning: invalid escape sequence '\[' """search_geo(*, lat, long, query, ip, granularity, max_results)
free
tweepy[async]==4.14.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Summary
Lots of warnings: SyntaxWarning: invalid escape sequence '['
Reproduction Steps
When I upgraded Python from 3.12.0 to 3.12.3.
Minimal Reproducible Example
No response
Expected Results
Remove these warning messages
Actual Results
Twitter API Access Plan
free
Tweepy Version
tweepy[async]==4.14.0
Checklist
Additional Context
No response
The text was updated successfully, but these errors were encountered: