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

PendingDeprecationWarning: Please use import python_multipart instead #36

Closed
simonw opened this issue Nov 15, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@simonw
Copy link
Owner

simonw commented Nov 15, 2024

Getting this from pytest:

================================================================================================== warnings summary ===================================================================================================
asgi_csrf.py:5
  /Users/simon/Dropbox/Development/asgi-csrf/asgi_csrf.py:5: PendingDeprecationWarning: Please use `import python_multipart` instead.
    from multipart import FormParser

tests/test_asgi_csrf.py: 35 warnings
  /Users/simon/Dropbox/Development/asgi-csrf/.venv/lib/python3.10/site-packages/httpx/_client.py:1437: DeprecationWarning: The 'app' shortcut is now deprecated. Use the explicit style 'transport=ASGITransport(app=...)' instead.
    warnings.warn(message, DeprecationWarning)

tests/test_asgi_csrf.py: 27 warnings
  /Users/simon/Dropbox/Development/asgi-csrf/.venv/lib/python3.10/site-packages/httpx/_client.py:1570: DeprecationWarning: Setting per-request cookies=<...> is being deprecated, because the expected behaviour on cookie persistence is ambiguous. Set cookies directly on the client instance instead.
    warnings.warn(message, DeprecationWarning)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================================================================================== 48 passed, 63 warnings in 0.09s ===========================================================================================
@simonw simonw added the bug Something isn't working label Nov 15, 2024
@simonw
Copy link
Owner Author

simonw commented Nov 15, 2024

Here's why: https://github.com/Kludex/python-multipart/blob/master/CHANGELOG.md

0.0.17 (2024-10-31)

  • Handle PermissionError in fallback code for old import name

0.0.16 (2024-10-27)

  • Add dunder attributes to multipart package

0.0.15 (2024-10-27)

  • Replace FutureWarning to PendingDeprecationWarning #174.
  • Add missing files to SDist

0.0.14 (2024-10-24)

  • Fix import scheme for multipart module

0.0.13 (2024-10-20)

  • Rename import to python_multipart #166.

simonw added a commit that referenced this issue Nov 15, 2024
@simonw simonw closed this as completed Nov 15, 2024
simonw added a commit that referenced this issue Nov 15, 2024
simonw added a commit that referenced this issue Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant