Skip to content
New issue

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

Function docs lots of warnings in Python3.12.3 #2187

Open
3 tasks done
arch0x opened this issue May 30, 2024 · 0 comments
Open
3 tasks done

Function docs lots of warnings in Python3.12.3 #2187

arch0x opened this issue May 30, 2024 · 0 comments
Labels
Unconfirmed Bug This is a bug report that has not been triaged yet

Comments

@arch0x
Copy link

arch0x commented May 30, 2024

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

/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)

Twitter API Access Plan

free

Tweepy Version

tweepy[async]==4.14.0

Checklist

  • I have searched for duplicate issues.
  • If applicable, I have shown the entire traceback.
  • If applicable, I have removed any visible credentials from my code and/or screenshots.

Additional Context

No response

@arch0x arch0x added the Unconfirmed Bug This is a bug report that has not been triaged yet label May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Unconfirmed Bug This is a bug report that has not been triaged yet
Projects
None yet
Development

No branches or pull requests

1 participant