Skip to content

Commit

Permalink
fixup! pythongh-115165: Fix Annotated for immutable types
Browse files Browse the repository at this point in the history
Update news blurb for pythongh-115165
  • Loading branch information
dave-shawley committed Feb 9, 2024
1 parent b87995b commit 1d7e6e5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 1d7e6e5

Please sign in to comment.