Remove deprecated Extension import alias#4210
Remove deprecated Extension import alias#4210Ckk3 wants to merge 2 commits intostrawberry-graphql:mainfrom
Extension import alias#4210Conversation
Reviewer's GuideRemoves the deprecated File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Thanks for adding the Here's a preview of the changelog: Remove deprecated Migration guideBefore (deprecated): from strawberry.extensions import Extension
class MyExtension(Extension): ...After: from strawberry.extensions import SchemaExtension
class MyExtension(SchemaExtension): ...Here's the tweet text: |
Greptile SummaryRemoves the deprecated
Confidence Score: 5/5
Important Files Changed
Flowchartflowchart TD
A["from strawberry.extensions import Extension"] -->|Before PR| B["__getattr__ intercepts"]
B --> C["DeprecationWarning emitted"]
C --> D["Returns SchemaExtension"]
A -->|After PR| E["ImportError raised"]
F["from strawberry.extensions import SchemaExtension"] -->|Both Before & After| G["Direct import succeeds"]
Last reviewed commit: 486295e |

Description
Remove the deprecated
Extensionimport alias fromstrawberry.extensions, deprecated since 0.160.0.Migration guide
Before (deprecated):
After:
Types of Changes
Checklist
Summary by Sourcery
Remove deprecated Extension alias from the extensions module and document the change for release notes.
Enhancements:
Documentation: