U
vâ’is ã @ s~ d dl mZmZmZmZ d dlmZmZ d dlmZ d dl
mZ edƒZd
eee eee gee f dœdd „Z
d gZdS )é )ÚCallableÚOptionalÚTypeVarÚcast)Ú
ObservableÚcompose)Ú operators)Ú PredicateÚ_TN)Ú predicateÚreturnc C s> | rt t | ¡t ¡ ƒS tttt gtt f t d¡ƒS dS )a? Returns the only element of an observable sequence that satisfies the
condition in the optional predicate, and reports an exception if there
is not exactly one element in the observable sequence.
Example:
>>> res = single()
>>> res = single(lambda x: x == 42)
Args:
predicate -- [Optional] A predicate function to evaluate for
elements in the source sequence.
Returns:
An observable sequence containing the single element in the
observable sequence that satisfies the condition in the predicate.
FN) r ÚopsÚfilterZsingler r r r
Zsingle_or_default_async)r © r úL/opt/alt/python38/lib/python3.8/site-packages/reactivex/operators/_single.pyÚsingle_
s þr )N)Útypingr r r r Z reactivexr r r r
Zreactivex.typingr r
r Ú__all__r r r r Ú