U vix@szddlmZmZmZddlmZmZddlmZddl m Z edZ d ee e eee gee fddd Z d gZdS) )CallableOptionalTypeVar) Observableabc) operators) Predicate_TN) predicatereturncs ttttdfdd }|S)N)sourcer csBdtjtttjdfdd }r:ttSt |S)aPPartially applied operator. Determines whether some element of an observable sequence satisfies a condition if present, else if some items are in the sequence. Example: >>> obs = some(source) Args: predicate -- A function to test each element for a condition. Returns: An observable sequence containing a single element determining whether some elements in the source sequence pass the test in the specified predicate if given, else if some items are in the sequence. N)observer schedulercs2tdfdd }fdd}j|j||dS)N_csddS)NTon_nextZ on_completedrr J/opt/alt/python38/lib/python3.8/site-packages/reactivex/operators/_some.pyr$s z7some_..some..subscribe..on_nextcsddS)NFrrrrron_error(s z8some_..some..subscribe..on_error)r)r subscriber)r rrrr rrr s z&some_..some..subscribe)N) rZ ObserverBaseboolrZ SchedulerBasepipeopsfiltersome_r)r rr rrsome szsome_..some)rr r)r rrrrr s+r)N)typingrrrZ reactivexrrrrZreactivex.typingrr rr__all__rrrrs    1