You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Title. My use case is with stubgen, where the generated stubfiles will be used back to 3.9. So importing them with those type annotations will cause errors.
Possible solution
Would it be reasonable to have this name be conditioned on the python version, that is, if we're on <3.13 then use typing_extensions.CapsuleType? Then as long as the stubfiles are generated with the lowest supported version then things shouldn't be an issue. That does come with the caveat that typing_extensions is now an implicit dependency, but for me personally that's perfectly fine.