Skip to content

Commit 4faf016

Browse files
committed
v2.15.2
1 parent bf86f7e commit 4faf016

File tree

3 files changed

+38
-3
lines changed

3 files changed

+38
-3
lines changed

docs/release-notes/changelog.rst

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,41 @@
33
2.x Changelog
44
=============
55

6+
.. changelog:: 2.15.2
7+
:date: 2025-04-06
8+
9+
.. change:: Events: Fix error handling for synchronous handlers
10+
:type: bugfix
11+
:pr: 4045
12+
13+
Fix a bug where exceptions weren't handled correctly on synchronous event handlers,
14+
and would result in another exception.
15+
16+
.. code-block:: python
17+
18+
@listener("raise_exception")
19+
def raise_exception_if_odd(value) -> None:
20+
if value is not None and value % 2 != 0:
21+
raise ValueError(f"{value} is odd")
22+
23+
Would raise an ``AttributeError: 'AsyncCallable' object has no attribute '__name__'. Did you mean: '__ne__'?``
24+
25+
.. change:: Fix wrong order of arguments in FileSystemAdapter passed to ``open`` fsspec file system
26+
:type: bugfix
27+
:pr: 4049
28+
29+
The order of arguments of various fsspec implementations varies, causing ``FileSystemAdapter.open`` to fail in
30+
different ways. This was fixed by always passing arguments as keywords to the file system.
31+
32+
.. change:: Correctly handle ``typing_extensions.TypeAliasType`` on ``typing-extensions>4.13.0``
33+
:type: bugfix
34+
:pr: 4089
35+
:issue: 4088
36+
37+
Handle the diverging ``TypeAliasType`` introduced in typing-extensions ``4.13.0``; This type is no longer
38+
backwards compatible, as it is a distinct new type from ``typing.TypeAliasType``
39+
40+
641
.. changelog:: 2.15.1
742
:date: 2025-02-27
843

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ maintainers = [
6363
name = "litestar"
6464
readme = "README.md"
6565
requires-python = ">=3.8,<4.0"
66-
version = "2.15.1"
66+
version = "2.15.2"
6767

6868
[project.urls]
6969
Blog = "https://blog.litestar.dev"

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)