b1d38e674d
- Update to 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 to BaseExceptionGroup[BaseException] and ExceptionGroup[Exception]) * Changed BaseExceptionGroup.__init__() to directly call BaseException.__init__() instead of the superclass __init__() in order to emulate the CPython behavior (broken or not) * Changed the exceptions attribute to always return the same tuple of exceptions, created from the original exceptions sequence passed to BaseExceptionGroup to match CPython behavior - Add py314.patch to fix tests on Python 3.14
Dirk Mueller2025-09-10 09:15:34 +00:00
572efa6ac7
- Update to 1.2.2 * Removed an `assert in exceptiongroup._formatting` that caused compatibility issues with Sentry (#123)
Markéta Machová2024-07-26 13:29:04 +00:00
d464606f62
Accepting request 1169658 from devel:languages:python
Ana Guerrero2024-04-23 16:55:09 +00:00
044c974452
- update to 1.2.1: * Updated the copying of __notes__ to match CPython behavior * Corrected the type annotation of the exception handler callback to accept a BaseExceptionGroup instead of BaseException * Fixed type errors on Python < 3.10 and the type annotation of suppress()
Dirk Mueller2024-04-20 14:09:00 +00:00
ed81958f82
Accepting request 1129176 from devel:languages:python
Ana Guerrero2023-11-28 21:18:26 +00:00
cc196127b8
- update to 1.2.0: * Added special monkeypatching if Apport <https://github.com/canonical/apport>_ has overridden `sys.excepthook so it will format exception groups correctly * 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 a raise in an except* handler * catch() now raises a TypeError if passed an async exception handler instead of just giving a RuntimeWarning about the coroutine never being awaited. * Fixed plain raise statement in an exception handler callback to work like a raise in an except* block * Fixed new exception group not being chained to the original exception when raising an exception group from exceptions raised in handler callbacks * Fixed type annotations of the derive(), subgroup() and split()` methods to match the ones in typeshed - drop skip-test_catch_handler_raises-for-older-311.patch (upstream) - Add skip-test_catch_handler_raises-for-older-311.patch
Dirk Mueller2023-11-27 15:45:13 +00:00
26b832b505
Accepting request 1096944 from devel:languages:python
Fabian Vogt2023-07-06 16:27:49 +00:00
1b0987a52d
- Add skip-test_catch_handler_raises-for-older-311.patch
Matej Cepl2023-07-05 10:24:03 +00:00
1c894e8e0f
- Skip still failing test_catch_handler_raises (gh#agronholm/exceptiongroup#64).
Matej Cepl2023-07-05 05:29:00 +00:00
75be636421
- Add 64_handl_embed_excep.patch fixing gh#agronholm/exceptiongroup#64.
Matej Cepl2023-07-04 23:39:40 +00:00
48c7731673
- Update to 1.1.2: - Changed handling of exceptions in exception group handler callbacks to not wrap a single exception in an exception group, as per CPython issue gh#python/cpython#103590.
Matej Cepl2023-07-04 22:34:59 +00:00