Summary
The DeprecationWarning for bridge.Option is raised at the module level, and therefore shows when imported
Reproduction Steps
- Import discord.ext.bridge
- 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
Additional Context
No response
Summary
The DeprecationWarning for
bridge.Optionis raised at the module level, and therefore shows when importedReproduction Steps
Minimal Reproducible Code
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
Checklist
Additional Context
No response