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

DeprecationWarning for BridgeOption raised at module level #2449

Closed
3 tasks done
BobDotCom opened this issue May 10, 2024 · 0 comments · Fixed by #2450
Closed
3 tasks done

DeprecationWarning for BridgeOption raised at module level #2449

BobDotCom opened this issue May 10, 2024 · 0 comments · Fixed by #2450
Assignees
Labels
bug Something isn't working

Comments

@BobDotCom
Copy link
Member

Summary

The DeprecationWarning for bridge.Option is raised at the module level, and therefore shows when imported

Reproduction Steps

  1. Import discord.ext.bridge
  2. Observe the warning in console

Minimal Reproducible Code

from discord.ext.bridge import *

Expected Results

Only warn if the deprecated class is used

Actual Results

Always warn, even if the class isn't used

Intents

N/A

System Information

  • Python v3.12.0-final
  • py-cord v2.5.1-final
  • aiohttp v3.9.5
  • system info: Darwin 23.4.0 Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:06 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T8103

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have removed my token from display, if visible.

Additional Context

No response

@BobDotCom BobDotCom added the bug Something isn't working label May 10, 2024
@BobDotCom BobDotCom self-assigned this May 10, 2024
@BobDotCom BobDotCom linked a pull request May 13, 2024 that will close this issue
9 tasks
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

Successfully merging a pull request may close this issue.

1 participant