Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Feature or enhancement
typing.Annotated is currently implemented as a class, but doesn't need to be. All other objects like it in thetyping module are implemented as instances oftyping._SpecialForm, and we can do the same here. This simplifies the code a lot (making it easier to maintain in the future), and should also beslightly more performant.