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

Importing stripe==7.8.1 raises a deprecation warning #1167

Closed
akx opened this issue Dec 11, 2023 · 1 comment · Fixed by #1168
Closed

Importing stripe==7.8.1 raises a deprecation warning #1167

akx opened this issue Dec 11, 2023 · 1 comment · Fixed by #1168
Labels

Comments

@akx
Copy link
Contributor

akx commented Dec 11, 2023

Describe the bug

See reproduction notes.

When DeprecationWarnings are set to raise and not just warn (e.g. in our test setup), this causes an immediate test failure.

To Reproduce

root@ed5bfe3d7af7:/# pip install stripe
Successfully installed certifi-2023.11.17 charset-normalizer-3.3.2 idna-3.6 requests-2.31.0 stripe-7.8.1 typing-extensions-4.9.0 urllib3-2.1.0
root@ed5bfe3d7af7:/# python -Xdev -c 'import stripe'
/usr/local/lib/python3.12/site-packages/stripe/app_info.py:5: DeprecationWarning:
    The stripe.app_info package is deprecated, please change your
    imports to import from stripe directly.
    From:
      from stripe.app_info import AppInfo
    To:
      from stripe import AppInfo

  warn(
root@ed5bfe3d7af7:/#

Expected behavior

No deprecation warning simply from importing the package.

Code snippets

import stripe

OS

Any

Language version

Any

Library version

stripe-python v7.8.1

API version

Doesn't matter

Additional context

No response

@pakrym-stripe
Copy link
Contributor

Released in 7.8.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants