From 1d7e6e5b1a750793d09e5f8922da573c4a1b5c53 Mon Sep 17 00:00:00 2001 From: Dave Shawley Date: Fri, 9 Feb 2024 13:00:13 -0500 Subject: [PATCH] fixup! gh-115165: Fix Annotated for immutable types Update news blurb for gh-115165 --- .../Library/2024-02-09-07-20-16.gh-issue-115165.yfJLXA.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Misc/NEWS.d/next/Library/2024-02-09-07-20-16.gh-issue-115165.yfJLXA.rst b/Misc/NEWS.d/next/Library/2024-02-09-07-20-16.gh-issue-115165.yfJLXA.rst index 67219120434fd1..9b433bffe17972 100644 --- a/Misc/NEWS.d/next/Library/2024-02-09-07-20-16.gh-issue-115165.yfJLXA.rst +++ b/Misc/NEWS.d/next/Library/2024-02-09-07-20-16.gh-issue-115165.yfJLXA.rst @@ -1,3 +1,3 @@ -``typing.Annotated`` ignores exceptions when setting the ``__orig_class__`` -attribute on objects returned from a callable. Previously only ``TypeError`` -was ignored. +``typing.Annotated`` now ignores most exceptions when attempting to set the +``__orig_class__`` attribute on objects returned when calling a generic alias. +Previously only :exc:`AttributeError`` was ignored. Patch by Dave Shawley.