stripe/stripe-python

Importing stripe==7.8.1 raises a deprecation warning

akx opened this issue · 1 comments

akx commented

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

Released in 7.8.2