Releases: agronholm/exceptiongroup
Releases · agronholm/exceptiongroup
1.3.1
1.3.0
- Added
**kwargsto function and method signatures as appropriate to match the signatures in the standard library - In line with the stdlib typings in typeshed, updated
(Base)ExceptionGroupgeneric 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
exceptionsattribute to always return the same tuple of exceptions, created from the original exceptions sequence passed toBaseExceptionGroupto 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
BaseExceptionGroupinstead 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.excepthookso 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
raisein a handler reraising the original naked exception rather than an exception group which is what is raised when you do araisein anexcept*handler