Skip to content

Commit

Permalink
Fixed changelog merges (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
gschaffner committed Aug 19, 2023
1 parent 1eca10c commit 81bfea7
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions docs/versionhistory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,22 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_.
- Added the ``anyio.Path.is_junction()`` and ``anyio.Path.walk()`` methods
- Added ``create_unix_datagram_socket`` and ``create_connected_unix_datagram_socket`` to
create UNIX datagram sockets (PR by Jean Hominal)
- Fixed ``from_thread.run`` and ``from_thread.run_sync`` not setting sniffio on asyncio.
As a result:

- Fixed ``from_thread.run_sync`` failing when used to call sniffio-dependent functions
on asyncio
- Fixed ``from_thread.run`` failing when used to call sniffio-dependent functions on
asyncio from a thread running trio or curio
- Fixed deadlock when using ``from_thread.start_blocking_portal(backend="asyncio")``
in a thread running trio or curio (PR by Ganden Schaffner)
- Improved type annotations:

- **BACKWARDS INCOMPATIBLE** ``create_memory_object_stream`` no longer accepts an
``item_type`` argument for static typing. Use
``create_memory_object_stream[T_Item]()`` instead. Type checking should no longer
fail when annotating memory object streams with uninstantiable item types (PR by
Ganden Schaffner)
- Added the ``CancelScope.cancelled_caught`` property which tells users if the cancel
scope suppressed a cancellation exception
- Fixed ``fail_after()`` raising an unwarranted ``TimeoutError`` when the cancel scope
Expand All @@ -70,13 +86,6 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_.
- Dropped support for Python 3.6
- Improved type annotations:

- **BACKWARDS INCOMPATIBLE** ``create_memory_object_stream`` no longer accepts an
``item_type`` argument for static typing. Use
``create_memory_object_stream[T_Item]()`` instead. Type checking should no longer
fail when annotating memory object streams with uninstantiable item types (PR by
Ganden Schaffner)
- Several functions and methods that previously only accepted coroutines as the return
type of the callable have been amended to accept any awaitables:
- Several functions and methods that were previously annotated as accepting
``Coroutine[Any, Any, Any]`` as the return type of the callable have been amended to
accept ``Awaitable[Any]`` instead, to allow a slightly broader set of coroutine-like
Expand All @@ -97,6 +106,7 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_.
- The ``TaskStatus`` class is now a generic protocol, and should be parametrized to
indicate the type of the value passed to ``task_status.started()``
- The ``Listener`` class is now covariant in its stream type
- ``create_memory_object_stream()`` now allows passing only ``item_type``
- Object receive streams are now covariant and object send streams are correspondingly
contravariant
- Changed ``TLSAttribute.shared_ciphers`` to match the documented semantics of
Expand All @@ -123,15 +133,6 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_.
- Worked around a `PyPy bug <https://foss.heptapod.net/pypy/pypy/-/issues/3938>`_
when using ``anyio.getaddrinfo()`` with for IPv6 link-local addresses containing
interface names
- Fixed ``from_thread.run`` and ``from_thread.run_sync`` not setting sniffio on asyncio.
As a result:

- Fixed ``from_thread.run_sync`` failing when used to call sniffio-dependent functions
on asyncio
- Fixed ``from_thread.run`` failing when used to call sniffio-dependent functions on
asyncio from a thread running trio or curio
- Fixed deadlock when using ``from_thread.start_blocking_portal(backend="asyncio")``
in a thread running trio or curio (PR by Ganden Schaffner)

**3.6.2**

Expand Down

0 comments on commit 81bfea7

Please sign in to comment.