File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 135135from collections .abc import AsyncIterator
136136from typing import Any , Generic , TypeGuard
137137
138+ from typing_extensions import deprecated
139+
138140from ._exceptions import Error
139141from ._generic import ReceiverMessageT_co
140142from ._receiver import Receiver , ReceiverStoppedError
@@ -246,6 +248,7 @@ def __repr__(self) -> str:
246248# It would have been nice to be able to make this a method of selected, but sadly
247249# `TypeGuard`s can't be used as methods. For more information see:
248250# https://github.com/microsoft/pyright/discussions/3125
251+ @deprecated ("Use `Receiver.is_selected()` instead." )
249252def selected_from (
250253 selected : Selected [Any ], receiver : Receiver [ReceiverMessageT_co ]
251254) -> TypeGuard [Selected [ReceiverMessageT_co ]]:
You can’t perform that action at this time.
0 commit comments