From 06874cc481cba00b73ef987d10b26795c5e54812 Mon Sep 17 00:00:00 2001
From: jakkdl
Date: Sat, 19 Oct 2024 15:19:04 +0200
Subject: [PATCH] add docs, version
---
docs/changelog.rst | 4 ++++
docs/rules.rst | 3 +++
flake8_async/__init__.py | 2 +-
3 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/docs/changelog.rst b/docs/changelog.rst
index 9a4e78f..d81bb8a 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -4,6 +4,10 @@ Changelog
`CalVer, YY.month.patch `_
+24.10.1
+=======
+- Add :ref:`ASYNC123 ` bad-exception-group-flattening
+
24.9.5
======
- Fix crash when analyzing code with infinite loop inside context manager.
diff --git a/docs/rules.rst b/docs/rules.rst
index a181536..a4ca99f 100644
--- a/docs/rules.rst
+++ b/docs/rules.rst
@@ -89,6 +89,9 @@ _`ASYNC121`: control-flow-in-taskgroup
_`ASYNC122`: delayed-entry-of-relative-cancelscope
:func:`trio.move_on_after`, :func:`trio.fail_after`, :func:`anyio.move_on_after` and :func:`anyio.fail_after` behaves unintuitively if initialization and entry are separated, with the timeout starting on initialization. Trio>=0.27 changes this behaviour, so if you don't support older versions you should disable this check. See `Trio issue #2512 `_.
+_`ASYNC123`: bad-exception-group-flattening
+ Raising an exception that was inside an `ExceptionGroup` inside the ``except`` handler of that group will set the group as the `__context__` for the exception, which overrides the previous `__context__` that exception had, truncating the context tree. The same is true for ``__cause__`` (unless explicitly setting ``from``) and `__traceback__`. The easiest fix is to `copy.copy` the exception before raising it, but beware that `trio.Cancelled` did not support copying before `trio==0.27.1`.
+
Blocking sync calls in async functions
======================================
diff --git a/flake8_async/__init__.py b/flake8_async/__init__.py
index 82fdf43..b9bbaf9 100644
--- a/flake8_async/__init__.py
+++ b/flake8_async/__init__.py
@@ -38,7 +38,7 @@
# CalVer: YY.month.patch, e.g. first release of July 2022 == "22.7.1"
-__version__ = "24.9.5"
+__version__ = "24.10.1"
# taken from https://github.com/Zac-HD/shed