
    zbja                        S SK Jr  S SKrS SKrS SKJrJr  S SKJrJ	r	J
r
Jr  S SKJrJr  \R                  S:  a  S SKJr  OS SKJr  \" S5      r " S	 S
\S9rg)    )annotationsN)ABCMetaabstractmethod)AsyncGeneratorCallable	CoroutineIterable)AnyTypeVar)      )Self_Tc                      \ rS rSrSrSS jr\        SS j5       r\      SS j5       r\      SS j5       r	\      SS j5       r
\SS j5       rS	rg
)
TestRunner   zf
Encapsulates a running event loop. Every call made through this object will use the
same event loop.
c                    U $ N selfs    ڎ/tmp/claude-0/-home-danvics-docker-quiz/c1e0577a-e42c-4a3d-b1ea-3edd61103a4e/scratchpad/stt/lib/python3.13/site-packages/anyio/abc/_testing.py	__enter__TestRunner.__enter__   s        c                    g r   r   )r   exc_typeexc_valexc_tbs       r   __exit__TestRunner.__exit__   s     r   c                    g)z
Run an async generator fixture.

:param fixture_func: the fixture function
:param kwargs: keyword arguments to call the fixture function with
:return: an iterator yielding the value yielded from the async generator
Nr   r   fixture_funckwargss      r   run_asyncgen_fixtureTestRunner.run_asyncgen_fixture"       r   c                    g)z
Run an async fixture.

:param fixture_func: the fixture function
:param kwargs: keyword arguments to call the fixture function with
:return: the return value of the fixture function
Nr   r#   s      r   run_fixtureTestRunner.run_fixture0   r(   r   c                    g)z
Run an async test function.

:param test_func: the test function
:param kwargs: keyword arguments to call the test function with
Nr   )r   	test_funcr%   s      r   run_testTestRunner.run_test>   r(   r   c                    g)zw
Check if the test runner is running.

:return: ``True`` if the coroutine is currently being run, ``False`` otherwise.
Nr   r   s    r   
is_runningTestRunner.is_runningI   r(   r   r   N)returnr   )r   ztype[BaseException] | Noner   zBaseException | Noner   ztypes.TracebackType | Noner3   zbool | None)r$   z&Callable[..., AsyncGenerator[_T, Any]]r%   dict[str, Any]r3   zIterable[_T])r$   z&Callable[..., Coroutine[Any, Any, _T]]r%   r4   r3   r   )r-   z'Callable[..., Coroutine[Any, Any, Any]]r%   r4   r3   None)r3   bool)__name__
__module____qualname____firstlineno____doc__r   r   r    r&   r*   r.   r1   __static_attributes__r   r   r   r   r      s    
 , & +	
 
  <  
	  <  
	  @JX	   r   r   )	metaclass)
__future__r   systypesabcr   r   collections.abcr   r   r   r	   typingr
   r   version_infor   typing_extensionsr   r   r   r   r   <module>rF      sC    " 
  ' I I w&T]>7 >r   