U vâ’irã@s~ddlmZmZmZmZddlmZmZddlm Z ddl m Z edƒZ d ee e eee geefdœd d „Z d gZdS) é)ÚAnyÚCallableÚOptionalÚTypeVar)Ú ObservableÚ operators)Ú Predicateé)Úlast_or_default_asyncÚ_TN)Ú predicateÚreturncs ttttdœ‡fdd„ }|S)N)Úsourcer cs$ˆr| t ˆ¡t ¡¡St|dƒS)aýPartially applied last operator. Returns the last element of an observable sequence that satisfies the condition in the predicate if specified, else the last element. Examples: >>> res = last(source) Args: source: Source observable to get last item from. Returns: An observable sequence containing the last element in the observable sequence that satisfies the condition in the predicate. F)ÚpiperÚfilterÚlastr )r©r ©úJ/opt/alt/python38/lib/python3.8/site-packages/reactivex/operators/_last.pyrs þzlast_..last)rr r)r rrrrÚlast_ sr)N)ÚtypingrrrrZ reactivexrrZreactivex.typingrZ_lastordefaultr r rÚ__all__rrrrÚs  ÿ þ !