GeezerVison is showing github.com — Add typing to 3.11 What's New · Issue #91491 · python/cpython
Add typing to 3.11 What's New #91491DescriptionI promised somewhere to write the typing section of the 3.11 What's New.
Here's what needs to be covered:
- PEP 646 (TypeVarTuple, Unpack)
- PEP 655 (Required/NotRequired)
- PEP 673 (Self)
- PEP 675 (LiteralString)
- (if accepted) PEP 681 (dataclass_transform)
- typing.reveal_type()
- typing.Never
- typing.assert_never()
- typing.assert_type()
- Improved introspection: @Final, @overload
- Runtime changes: bpo-44807: Allow Protocol classes to define __init__ #31628, bpo-46998: Allow subclassing Any at runtime #31841, bpo-46981: Remove typing._TypingEmpty #31836, bpo-46644: Remove callable() requirement from typing._type_check #31151, bpo-41370: Evaluate strings as forward refs in PEP 585 generics #30900, bpo-46195: Do not add
Optional in get_type_hints #30304, bpo-46571: improve typing.no_type_check to skip foreign objects #31042, bpo-46066: Deprecate kwargs syntax for TypedDict definitions #31126, bpo-46655: allow stringized TypeAlias with get_type_hints #31156, bpo-46553: allow bare typing.ClassVar annotations #30983 and probably others
Reacted by Carol Willing and Ken Jin ActivityAlexWaygood commented on Apr 14, 2022 If #32335 is merged before the feature freeze, it might need a mention in the "new modules" section. hauntsaninja commented on May 7, 2022 To clarify the state here, following #92060 , all the individual bullet points in ^^ have been covered, but we're missing coverage in What's New for the large clump of changes in the last bullet point. pablogsal commented on May 9, 2022 ⚠️ This issue has been updated from 'deferred-blocker' to 'release blocker' as we are past beta1. This issue will block the next release (Python 3.11.0 beta 2). ⚠️
MetadataMetadataStatusShow more project fields
DevelopmentNo branches or pull requestsIssue actions
|