File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_.
21
21
- Added the ``info `` property to ``anyio.Path `` on Python 3.14
22
22
- Changed ``anyio.getaddrinfo() `` to ignore (invalid) IPv6 name resolution results when
23
23
IPv6 support is disabled in Python
24
+ - Changed ``EndOfStream `` raised from ``MemoryObjectReceiveStream.receive() `` to leave
25
+ out the ``AttributeError `` from the exception chain which was merely an implementation
26
+ detail and caused some confusion
24
27
- Fixed traceback formatting growing quadratically with level of ``TaskGroup ``
25
28
nesting on asyncio due to exception chaining when raising ``ExceptionGroups ``
26
29
in ``TaskGroup.__aexit__ ``
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ async def receive(self) -> T_co:
123
123
try :
124
124
return receiver .item
125
125
except AttributeError :
126
- raise EndOfStream
126
+ raise EndOfStream from None
127
127
128
128
def clone (self ) -> MemoryObjectReceiveStream [T_co ]:
129
129
"""
You can’t perform that action at this time.
0 commit comments