
    ܹj4                     l    S r SSKrSSKJr  SSKJrJr  SSKJr  SSK	J
r
  S\S\
4S	 jrS
\S\S\4S jrg)uD   FastAPI dependency helpers — mirrors PMChat's app/dependencies.py.    N)partial)CallableAny)Request)ServiceRegistryrequestreturnc                 B    U R                   R                  R                  $ )N)appstateregistry)r   s    -/root/lseg-credit/backend/app/dependencies.pyget_registryr      s    ;;%%%    fnargskwargsc                    #    [         R                  " 5       nUR                  S[        U /UQ70 UD65      I Sh  vN $  N7f)z3Run a blocking function in the default thread pool.N)asyncioget_event_looprun_in_executorr   )r   r   r   loops       r   run_syncr      s;     !!#D%%dGB,H,H,HIIIIs   8A?A)__doc__r   	functoolsr   typingr   r   fastapir   app.services.registryr   r   r    r   r   <module>r       sH    J      1&' &o &Jx J Js Jr   