Releases: agronholm/exceptiongroup
Releases · agronholm/exceptiongroup
1.3.0
- Added
**kwargs
to function and method signatures as appropriate to match the signatures in the standard library - In line with the stdlib typings in typeshed, updated
(Base)ExceptionGroup
generic types to define defaults for their generic arguments (defaulting toBaseExceptionGroup[BaseException]
andExceptionGroup[Exception]
) (PR by @mikenerone) - Changed
BaseExceptionGroup.__init__()
to directly callBaseException.__init__()
instead of the superclass__init__()
in order to emulate the CPython behavior (broken or not) (PR by @cfbolz) - Changed the
exceptions
attribute to always return the same tuple of exceptions, created from the original exceptions sequence passed toBaseExceptionGroup
to match CPython behavior (#143)
1.2.2
1.2.1
- Updated the copying of
__notes__
to match CPython behavior (PR by CF Bolz-Tereick) - Corrected the type annotation of the exception handler callback to accept a
BaseExceptionGroup
instead ofBaseException
- Fixed type errors on Python < 3.10 and the type annotation of
suppress()
(PR by John Litborn)
1.2.0
- Added special monkeypatching if Apport has overridden
sys.excepthook
so it will format exception groups correctly (PR by John Litborn) - Added a backport of
contextlib.suppress()
from Python 3.12.1 which also handles suppressing exceptions inside exception groups - Fixed bare
raise
in a handler reraising the original naked exception rather than an exception group which is what is raised when you do araise
in anexcept*
handler