+
    ~j5                        ^ RI Ht ^ RIt^ RIt^ RIHtHtHt ^ RIH	t	 ^ RI
t
^ RIt^ RIt
]! R4      t]	! R4      tR R ltR	 R
 ltR# )    )annotationsN)TypeVarCallable	Awaitable)	ParamSpecT_RetvalT_ParamSpecc               (    V ^8  d   QhRRRRRRRR/# )	   funcCallable[T_ParamSpec, T_Retval]argsT_ParamSpec.argskwargsT_ParamSpec.kwargsreturnr    )formats   "k/Users/mitch_tango/dev/rabbit-r1-livekit/agent/.venv/lib/python3.14/site-packages/anthropic/_utils/_sync.py__annotate__r      s,      
)5EQc    c                 "   \         P                  ! 4       R 8X  d#   \        P                  ! V .VO5/ VB G Rj  xL
 # \        P                  P                  \        P                  ! V .VO5/ VB 4      G Rj  xL
 #  LC L5i)asyncioN)sniffiocurrent_async_libraryr   	to_threadanyiorun_sync	functoolspartial)r   r   r   s   "*,r   r   r      st      $$&)3&&t=d=f===))$000   >s!   8BA>>B9B :B Bc                    V ^8  d   QhRRRR/# )r   functionr   r   z*Callable[T_ParamSpec, Awaitable[T_Retval]]r   )r   s   "r   r   r      s      6 ;e r   c                   a  R V 3R llpV# )a#  
Take a blocking function and create an async one that receives the same
positional and keyword arguments.

Usage:

```python
def blocking_func(arg1, arg2, kwarg1=None):
    # blocking code
    return result


result = asyncify(blocking_function)(arg1, arg2, kwarg1=value1)
```

## Arguments

`function`: a blocking regular callable (e.g. a function)

## Return

An async function that takes the same positional and keyword arguments as the
original one, that when called runs the same original function in a thread worker
and returns the result.
c               $    V ^8  d   QhRRRRRR/# )r   r   r   r   r   r   r   r   )r   s   "r   r   asyncify.<locals>.__annotate__7   s$     : :- :9K :PX :r   c                 >   <"   \        S.V O5/ VB G R j  xL
 #  L5i)N)r   )r   r   r"   s   *,r   wrapperasyncify.<locals>.wrapper7   s!     x9$9&9999s   r   )r"   r'   s   f r   asyncifyr)      s    6: : Nr   )
__future__r   r   r   typingr   r   r   typing_extensionsr   r   r   anyio.to_threadr   r	   r   r)   r   r   r   <module>r.      s>    "   / / '   :&r   