SYMBOL INDEX (2206 symbols across 143 files) FILE: docs/source/conf.py function on_read_source (line 93) | def on_read_source(app: Sphinx, docname: str, content: list[str]) -> None: function autodoc_process_signature (line 147) | def autodoc_process_signature( function autodoc_process_docstring (line 189) | def autodoc_process_docstring( function setup (line 210) | def setup(app: Sphinx) -> None: function add_intersphinx (line 261) | def add_intersphinx(app: Sphinx) -> None: FILE: docs/source/local_customization.py class Interface (line 28) | class Interface(PyClasslike): method handle_signature (line 29) | def handle_signature(self, sig: str, signode: desc_signature) -> tuple... method get_index_text (line 33) | def get_index_text(self, modname: str, name_cls: tuple[str, str]) -> str: function setup (line 37) | def setup(app: Sphinx) -> None: FILE: docs/source/reference-core/channels-backpressure.py function producer (line 8) | async def producer(send_channel): function consumer (line 19) | async def consumer(receive_channel): function main (line 27) | async def main(): FILE: docs/source/reference-core/channels-mpmc-broken.py function main (line 7) | async def main(): function producer (line 18) | async def producer(name, send_channel): function consumer (line 26) | async def consumer(name, receive_channel): FILE: docs/source/reference-core/channels-mpmc-fixed.py function main (line 5) | async def main(): function producer (line 17) | async def producer(name, send_channel): function consumer (line 25) | async def consumer(name, receive_channel): FILE: docs/source/reference-core/channels-shutdown.py function main (line 4) | async def main(): function producer (line 11) | async def producer(send_channel): function consumer (line 17) | async def consumer(receive_channel): FILE: docs/source/reference-core/channels-simple.py function main (line 4) | async def main(): function producer (line 14) | async def producer(send_channel): function consumer (line 21) | async def consumer(receive_channel): FILE: docs/source/reference-core/contextvar-example.py function log (line 9) | def log(msg): function handle_request (line 18) | async def handle_request(tag): function concurrent_helper (line 31) | async def concurrent_helper(job): function main (line 39) | async def main(): FILE: docs/source/reference-core/from-thread-example.py function thread_fn (line 4) | def thread_fn(receive_from_trio, send_to_trio): function main (line 18) | async def main(): FILE: docs/source/reference-core/thread-contextvars-example.py function work_in_thread (line 11) | def work_in_thread(msg): function handle_request (line 24) | async def handle_request(current_user_id): function main (line 41) | async def main(): FILE: docs/source/reference-testing/across-realtime.py function task1 (line 10) | async def task1(): function task2 (line 27) | async def task2(): function main (line 43) | async def main(): function run_example (line 49) | def run_example(clock): FILE: docs/source/tutorial/echo-client.py function sender (line 13) | async def sender(client_stream): function receiver (line 22) | async def receiver(client_stream): function parent (line 30) | async def parent(): FILE: docs/source/tutorial/echo-server.py function echo_server (line 15) | async def echo_server(server_stream): function main (line 35) | async def main(): FILE: docs/source/tutorial/tasks-intro.py function child1 (line 6) | async def child1(): function child2 (line 12) | async def child2(): function parent (line 18) | async def parent(): FILE: docs/source/tutorial/tasks-with-trace.py function child1 (line 6) | async def child1(): function child2 (line 12) | async def child2(): function parent (line 18) | async def parent(): class Tracer (line 32) | class Tracer(trio.abc.Instrument): method before_run (line 33) | def before_run(self): method _print_with_task (line 36) | def _print_with_task(self, msg, task): method task_spawned (line 41) | def task_spawned(self, task): method task_scheduled (line 44) | def task_scheduled(self, task): method before_task_step (line 47) | def before_task_step(self, task): method after_task_step (line 50) | def after_task_step(self, task): method task_exited (line 53) | def task_exited(self, task): method before_io_wait (line 56) | def before_io_wait(self, timeout): method after_io_wait (line 63) | def after_io_wait(self, timeout): method after_run (line 67) | def after_run(self): FILE: docs/source/typevars.py function identify_typevars (line 21) | def identify_typevars(trio_folder: Path) -> None: function lookup_reference (line 49) | def lookup_reference( function setup (line 104) | def setup(app: Sphinx) -> None: FILE: src/trio/_abc.py class Clock (line 19) | class Clock(ABC): method start_clock (line 25) | def start_clock(self) -> None: method current_time (line 33) | def current_time(self) -> float: method deadline_to_sleep_time (line 45) | def deadline_to_sleep_time(self, deadline: float) -> float: class Instrument (line 69) | class Instrument(ABC): # noqa: B024 # conceptually is ABC method before_run (line 79) | def before_run(self) -> None: method after_run (line 83) | def after_run(self) -> None: method task_spawned (line 87) | def task_spawned(self, task: Task) -> None: method task_scheduled (line 96) | def task_scheduled(self, task: Task) -> None: method before_task_step (line 108) | def before_task_step(self, task: Task) -> None: method after_task_step (line 117) | def after_task_step(self, task: Task) -> None: method task_exited (line 126) | def task_exited(self, task: Task) -> None: method before_io_wait (line 135) | def before_io_wait(self, timeout: float) -> None: method after_io_wait (line 144) | def after_io_wait(self, timeout: float) -> None: class HostnameResolver (line 156) | class HostnameResolver(ABC): method getaddrinfo (line 167) | async def getaddrinfo( method getnameinfo (line 198) | async def getnameinfo( class SocketFactory (line 210) | class SocketFactory(ABC): method socket (line 221) | def socket( class AsyncResource (line 243) | class AsyncResource(ABC): method aclose (line 272) | async def aclose(self) -> None: method __aenter__ (line 300) | async def __aenter__(self) -> Self: method __aexit__ (line 303) | async def __aexit__( class SendStream (line 312) | class SendStream(AsyncResource): method send_all (line 331) | async def send_all(self, data: bytes | bytearray | memoryview) -> None: method wait_send_all_might_not_block (line 357) | async def wait_send_all_might_not_block(self) -> None: class ReceiveStream (line 413) | class ReceiveStream(AsyncResource): method receive_some (line 437) | async def receive_some(self, max_bytes: int | None = None) -> bytes | ... method __aiter__ (line 465) | def __aiter__(self) -> Self: method __anext__ (line 468) | async def __anext__(self) -> bytes | bytearray: class Stream (line 475) | class Stream(SendStream, ReceiveStream): class HalfCloseableStream (line 489) | class HalfCloseableStream(Stream): method send_eof (line 498) | async def send_eof(self) -> None: class Listener (line 565) | class Listener(AsyncResource, Generic[T_resource]): method accept (line 577) | async def accept(self) -> T_resource: class SendChannel (line 604) | class SendChannel(AsyncResource, Generic[SendType]): method send (line 619) | async def send(self, value: SendType) -> None: class ReceiveChannel (line 640) | class ReceiveChannel(AsyncResource, Generic[ReceiveType]): method receive (line 664) | async def receive(self) -> ReceiveType: method __aiter__ (line 684) | def __aiter__(self) -> Self: method __anext__ (line 687) | async def __anext__(self) -> ReceiveType: class Channel (line 702) | class Channel(SendChannel[T], ReceiveChannel[T]): FILE: src/trio/_channel.py class open_memory_channel (line 49) | class open_memory_channel(tuple["MemorySendChannel[T]", "MemoryReceiveCh... method __new__ (line 101) | def __new__( # type: ignore[misc] # "must return a subtype" method __init__ (line 115) | def __init__(self, max_buffer_size: int | float) -> None: # noqa: PYI041 class MemoryChannelStatistics (line 120) | class MemoryChannelStatistics: class MemoryChannelState (line 130) | class MemoryChannelState(Generic[T]): method statistics (line 141) | def statistics(self) -> MemoryChannelStatistics: class MemorySendChannel (line 154) | class MemorySendChannel(SendChannel[SendType], metaclass=NoPublicConstru... method __attrs_post_init__ (line 162) | def __attrs_post_init__(self) -> None: method __repr__ (line 165) | def __repr__(self) -> str: method statistics (line 168) | def statistics(self) -> MemoryChannelStatistics: method send_nowait (line 175) | def send_nowait(self, value: SendType) -> None: method send (line 195) | async def send(self, value: SendType) -> None: method clone (line 224) | def clone(self) -> MemorySendChannel[SendType]: method __enter__ (line 252) | def __enter__(self) -> Self: method __exit__ (line 255) | def __exit__( method close (line 264) | def close(self) -> None: method aclose (line 292) | async def aclose(self) -> None: class MemoryReceiveChannel (line 302) | class MemoryReceiveChannel(ReceiveChannel[ReceiveType], metaclass=NoPubl... method __attrs_post_init__ (line 307) | def __attrs_post_init__(self) -> None: method statistics (line 310) | def statistics(self) -> MemoryChannelStatistics: method __repr__ (line 315) | def __repr__(self) -> str: method receive_nowait (line 321) | def receive_nowait(self) -> ReceiveType: method receive (line 341) | async def receive(self) -> ReceiveType: method clone (line 373) | def clone(self) -> MemoryReceiveChannel[ReceiveType]: method __enter__ (line 404) | def __enter__(self) -> Self: method __exit__ (line 407) | def __exit__( method close (line 416) | def close(self) -> None: method aclose (line 445) | async def aclose(self) -> None: class RecvChanWrapper (line 453) | class RecvChanWrapper(ReceiveChannel[T]): method __init__ (line 454) | def __init__( method receive (line 460) | async def receive(self) -> T: method aclose (line 464) | async def aclose(self) -> None: method __enter__ (line 467) | def __enter__(self) -> Self: method __exit__ (line 470) | def __exit__( function as_safe_channel (line 479) | def as_safe_channel( FILE: src/trio/_core/_asyncgens.py function _call_without_ki_protection (line 36) | def _call_without_ki_protection( class AsyncGenerators (line 46) | class AsyncGenerators: method install_hooks (line 68) | def install_hooks(self, runner: _run.Runner) -> None: method finalize_remaining (line 160) | async def finalize_remaining(self, runner: _run.Runner) -> None: method close (line 220) | def close(self) -> None: method _finalize_one (line 223) | async def _finalize_one( FILE: src/trio/_core/_concat_tb.py function concat_tb (line 9) | def concat_tb( FILE: src/trio/_core/_entry_queue.py class EntryQueue (line 24) | class EntryQueue: method task (line 47) | async def task(self) -> None: method close (line 124) | def close(self) -> None: method size (line 127) | def size(self) -> int: method run_sync_soon (line 130) | def run_sync_soon( class TrioToken (line 153) | class TrioToken(metaclass=NoPublicConstructor): method run_sync_soon (line 174) | def run_sync_soon( FILE: src/trio/_core/_exceptions.py class TrioInternalError (line 25) | class TrioInternalError(Exception): class RunFinishedError (line 39) | class RunFinishedError(RuntimeError): class WouldBlock (line 46) | class WouldBlock(Exception): class Cancelled (line 52) | class Cancelled(BaseException, metaclass=NoPublicConstructor): method __str__ (line 90) | def __str__(self) -> str: method __reduce__ (line 97) | def __reduce__(self) -> tuple[Callable[[], Cancelled], tuple[()]]: method _create (line 114) | def _create( class BusyResourceError (line 123) | class BusyResourceError(Exception): class ClosedResourceError (line 134) | class ClosedResourceError(Exception): class BrokenResourceError (line 147) | class BrokenResourceError(Exception): class EndOfChannel (line 163) | class EndOfChannel(Exception): FILE: src/trio/_core/_generated_instrumentation.py function add_instrument (line 18) | def add_instrument(instrument: Instrument) -> None: function remove_instrument (line 34) | def remove_instrument(instrument: Instrument) -> None: FILE: src/trio/_core/_generated_io_epoll.py function wait_readable (line 22) | async def wait_readable(fd: int | _HasFileNo) -> None: function wait_writable (line 51) | async def wait_writable(fd: int | _HasFileNo) -> None: function notify_closing (line 70) | def notify_closing(fd: int | _HasFileNo) -> None: FILE: src/trio/_core/_generated_io_kqueue.py function current_kqueue (line 35) | def current_kqueue() -> select.kqueue: function monitor_kevent (line 47) | def monitor_kevent( function wait_kevent (line 61) | async def wait_kevent( function wait_readable (line 77) | async def wait_readable(fd: int | _HasFileNo) -> None: function wait_writable (line 106) | async def wait_writable(fd: int | _HasFileNo) -> None: function notify_closing (line 125) | def notify_closing(fd: int | _HasFileNo) -> None: FILE: src/trio/_core/_generated_io_windows.py function wait_readable (line 38) | async def wait_readable(sock: _HasFileNo | int) -> None: function wait_writable (line 67) | async def wait_writable(sock: _HasFileNo | int) -> None: function notify_closing (line 86) | def notify_closing(handle: Handle | int | _HasFileNo) -> None: function register_with_iocp (line 118) | def register_with_iocp(handle: int | CData) -> None: function wait_overlapped (line 131) | async def wait_overlapped(handle_: int | CData, lpOverlapped: CData | in... function write_overlapped (line 146) | async def write_overlapped( function readinto_overlapped (line 163) | async def readinto_overlapped( function current_iocp (line 180) | def current_iocp() -> int: function monitor_completion_key (line 193) | def monitor_completion_key() -> ( FILE: src/trio/_core/_generated_run.py function current_statistics (line 36) | def current_statistics() -> RunStatistics: function current_time (line 66) | def current_time() -> float: function current_clock (line 83) | def current_clock() -> Clock: function current_root_task (line 92) | def current_root_task() -> Task | None: function reschedule (line 105) | def reschedule(task: Task, next_send: outcome.Outcome[object] = _NO_SEND... function spawn_system_task (line 130) | def spawn_system_task( function current_trio_token (line 196) | def current_trio_token() -> TrioToken: function wait_all_tasks_blocked (line 208) | async def wait_all_tasks_blocked(cushion: float = 0.0) -> None: FILE: src/trio/_core/_instrumentation.py function _public (line 21) | def _public(fn: T) -> T: class Instruments (line 25) | class Instruments(UserDict[str, dict[Instrument, None]]): method __init__ (line 37) | def __init__(self, incoming: Sequence[Instrument]) -> None: method add_instrument (line 43) | def add_instrument(self, instrument: Instrument) -> None: method remove_instrument (line 73) | def remove_instrument(self, instrument: Instrument) -> None: method call (line 94) | def call( FILE: src/trio/_core/_io_common.py function wake_all (line 16) | def wake_all(waiters: EpollWaiters | AFDWaiters, exc: BaseException) -> ... FILE: src/trio/_core/_io_epoll.py class EpollWaiters (line 22) | class EpollWaiters: class _EpollStatistics (line 35) | class _EpollStatistics: class EpollIOManager (line 200) | class EpollIOManager: method __attrs_post_init__ (line 211) | def __attrs_post_init__(self) -> None: method statistics (line 215) | def statistics(self) -> _EpollStatistics: method close (line 228) | def close(self) -> None: method force_wakeup (line 232) | def force_wakeup(self) -> None: method get_events (line 238) | def get_events(self, timeout: float) -> EventResult: method process_events (line 245) | def process_events(self, events: EventResult) -> None: method _update_registrations (line 264) | def _update_registrations(self, fd: int) -> None: method _epoll_wait (line 293) | async def _epoll_wait(self, fd: int | _HasFileNo, attr_name: str) -> N... method wait_readable (line 312) | async def wait_readable(self, fd: int | _HasFileNo) -> None: method wait_writable (line 337) | async def wait_writable(self, fd: int | _HasFileNo) -> None: method notify_closing (line 352) | def notify_closing(self, fd: int | _HasFileNo) -> None: FILE: src/trio/_core/_io_kqueue.py class _KqueueStatistics (line 28) | class _KqueueStatistics: class KqueueIOManager (line 35) | class KqueueIOManager: method __attrs_post_init__ (line 44) | def __attrs_post_init__(self) -> None: method statistics (line 53) | def statistics(self) -> _KqueueStatistics: method close (line 63) | def close(self) -> None: method force_wakeup (line 67) | def force_wakeup(self) -> None: method get_events (line 70) | def get_events(self, timeout: float) -> EventResult: method process_events (line 87) | def process_events(self, events: EventResult) -> None: method current_kqueue (line 113) | def current_kqueue(self) -> select.kqueue: method monitor_kevent (line 122) | def monitor_kevent( method wait_kevent (line 144) | async def wait_kevent( method _wait_common (line 170) | async def _wait_common( method wait_readable (line 206) | async def wait_readable(self, fd: int | _HasFileNo) -> None: method wait_writable (line 231) | async def wait_writable(self, fd: int | _HasFileNo) -> None: method notify_closing (line 246) | def notify_closing(self, fd: int | _HasFileNo) -> None: FILE: src/trio/_core/_io_windows.py class CKeys (line 191) | class CKeys(enum.IntEnum): class AFDWaiters (line 242) | class AFDWaiters: class _AFDHandle (line 249) | class _AFDHandle(Protocol): class _AFDPollInfo (line 256) | class _AFDPollInfo(Protocol): class AFDPollOp (line 267) | class AFDPollOp: class AFDGroup (line 286) | class AFDGroup: class _WindowsStatistics (line 295) | class _WindowsStatistics: function _check (line 310) | def _check(success: T) -> T: function _get_underlying_socket (line 316) | def _get_underlying_socket( function _get_base_socket (line 342) | def _get_base_socket(sock: _HasFileNo | int | Handle) -> Handle: function _afd_helper_handle (line 390) | def _afd_helper_handle() -> Handle: class CompletionKeyEventInfo (line 423) | class CompletionKeyEventInfo: class WindowsIOManager (line 428) | class WindowsIOManager: method __init__ (line 429) | def __init__(self) -> None: method close (line 493) | def close(self) -> None: method __del__ (line 504) | def __del__(self) -> None: method statistics (line 507) | def statistics(self) -> _WindowsStatistics: method force_wakeup (line 522) | def force_wakeup(self) -> None: method get_events (line 533) | def get_events(self, timeout: float) -> EventResult: method process_events (line 558) | def process_events(self, received: EventResult) -> None: method _register_with_iocp (line 640) | def _register_with_iocp(self, handle_: int | CData, completion_key: in... method _refresh_afd (line 659) | def _refresh_afd(self, base_handle: Handle) -> None: method _afd_poll (line 736) | async def _afd_poll(self, sock: _HasFileNo | int, mode: str) -> None: method wait_readable (line 757) | async def wait_readable(self, sock: _HasFileNo | int) -> None: method wait_writable (line 782) | async def wait_writable(self, sock: _HasFileNo | int) -> None: method notify_closing (line 797) | def notify_closing(self, handle: Handle | int | _HasFileNo) -> None: method register_with_iocp (line 833) | def register_with_iocp(self, handle: int | CData) -> None: method wait_overlapped (line 842) | async def wait_overlapped( method _perform_overlapped (line 922) | async def _perform_overlapped( method write_overlapped (line 945) | async def write_overlapped( method readinto_overlapped (line 978) | async def readinto_overlapped( method current_iocp (line 1013) | def current_iocp(self) -> int: method monitor_completion_key (line 1024) | def monitor_completion_key(self) -> Iterator[tuple[int, UnboundedQueue... FILE: src/trio/_core/_ki.py class _IdRef (line 83) | class _IdRef(weakref.ref[_T]): method __new__ (line 87) | def __new__( method __eq__ (line 97) | def __eq__(self, other: object) -> bool: method __ne__ (line 112) | def __ne__(self, other: object) -> bool: method __hash__ (line 115) | def __hash__(self) -> int: class WeakKeyIdentityDictionary (line 124) | class WeakKeyIdentityDictionary(Generic[_KT, _VT]): method __init__ (line 125) | def __init__(self) -> None: method __getitem__ (line 145) | def __getitem__(self, k: _KT) -> _VT: method __setitem__ (line 148) | def __setitem__(self, k: _KT, v: _VT) -> None: function legacy_isasyncgenfunction (line 162) | def legacy_isasyncgenfunction( function ki_protection_enabled (line 170) | def ki_protection_enabled(frame: types.FrameType | None) -> bool: function currently_ki_protected (line 195) | def currently_ki_protected() -> bool: class _SupportsCode (line 211) | class _SupportsCode(Protocol): function enable_ki_protection (line 218) | def enable_ki_protection(f: _T_supports_code, /) -> _T_supports_code: function disable_ki_protection (line 229) | def disable_ki_protection(f: _T_supports_code, /) -> _T_supports_code: class KIManager (line 241) | class KIManager: method install (line 244) | def install( method close (line 267) | def close(self) -> None: FILE: src/trio/_core/_local.py class _NoValue (line 15) | class _NoValue: ... class RunVarToken (line 20) | class RunVarToken(Generic[T], metaclass=NoPublicConstructor): method _empty (line 26) | def _empty(cls, var: RunVar[T]) -> RunVarToken[T]: class RunVar (line 32) | class RunVar(Generic[T]): method get (line 44) | def get(self, default: T | type[_NoValue] = _NoValue) -> T: method set (line 61) | def set(self, value: T) -> RunVarToken[T]: method reset (line 78) | def reset(self, token: RunVarToken[T]) -> None: method __repr__ (line 103) | def __repr__(self) -> str: FILE: src/trio/_core/_mock_clock.py class MockClock (line 18) | class MockClock(Clock): method __init__ (line 66) | def __init__(self, rate: float = 0.0, autojump_threshold: float = inf)... method __repr__ (line 81) | def __repr__(self) -> str: method rate (line 85) | def rate(self) -> float: method rate (line 89) | def rate(self, new_rate: float) -> None: method autojump_threshold (line 100) | def autojump_threshold(self) -> float: method autojump_threshold (line 104) | def autojump_threshold(self, new_autojump_threshold: float) -> None: method _try_resync_autojump_threshold (line 114) | def _try_resync_autojump_threshold(self) -> None: method _autojump (line 127) | def _autojump(self) -> None: method _real_to_virtual (line 133) | def _real_to_virtual(self, real: float) -> float: method start_clock (line 138) | def start_clock(self) -> None: method current_time (line 141) | def current_time(self) -> float: method deadline_to_sleep_time (line 144) | def deadline_to_sleep_time(self, deadline: float) -> float: method jump (line 153) | def jump(self, seconds: float) -> None: FILE: src/trio/_core/_parking_lot.py function add_parking_lot_breaker (line 94) | def add_parking_lot_breaker(task: Task, lot: ParkingLot) -> None: function remove_parking_lot_breaker (line 110) | def remove_parking_lot_breaker(task: Task, lot: ParkingLot) -> None: class ParkingLotStatistics (line 123) | class ParkingLotStatistics: class ParkingLot (line 138) | class ParkingLot: method __len__ (line 156) | def __len__(self) -> int: method __bool__ (line 160) | def __bool__(self) -> bool: method park (line 169) | async def park(self) -> None: method _pop_several (line 192) | def _pop_several(self, count: int | float) -> Iterator[Task]: # noqa:... method unpark (line 205) | def unpark(self, *, count: int | float = 1) -> list[Task]: # noqa: PY... method unpark_all (line 221) | def unpark_all(self) -> list[Task]: method repark (line 226) | def repark( method repark_all (line 270) | def repark_all(self, new_lot: ParkingLot) -> None: method break_lot (line 279) | def break_lot(self, task: Task | None = None) -> None: method statistics (line 308) | def statistics(self) -> ParkingLotStatistics: FILE: src/trio/_core/_run.py class _NoStatus (line 104) | class _NoStatus(metaclass=NoPublicConstructor): function _public (line 110) | def _public(fn: RetT) -> RetT: function _hypothesis_plugin_setup (line 125) | def _hypothesis_plugin_setup() -> None: # pragma: no cover function _count_context_run_tb_frames (line 148) | def _count_context_run_tb_frames() -> int: class SystemClock (line 193) | class SystemClock(Clock): method start_clock (line 199) | def start_clock(self) -> None: method current_time (line 205) | def current_time(self) -> float: method deadline_to_sleep_time (line 208) | def deadline_to_sleep_time(self, deadline: float) -> float: class IdlePrimedTypes (line 212) | class IdlePrimedTypes(enum.Enum): function collapse_exception_group (line 222) | def collapse_exception_group( class Deadlines (line 255) | class Deadlines: method add (line 268) | def add(self, deadline: float, cancel_scope: CancelScope) -> None: method remove (line 272) | def remove(self, deadline: float, cancel_scope: CancelScope) -> None: method next_deadline (line 275) | def next_deadline(self) -> float: method _prune (line 285) | def _prune(self) -> None: method expire (line 306) | def expire(self, now: float) -> bool: class CancelReason (line 324) | class CancelReason: class CancelStatus (line 338) | class CancelStatus: method __attrs_post_init__ (line 404) | def __attrs_post_init__(self) -> None: method parent (line 412) | def parent(self) -> CancelStatus | None: method parent (line 416) | def parent(self, parent: CancelStatus | None) -> None: method children (line 425) | def children(self) -> frozenset[CancelStatus]: method tasks (line 429) | def tasks(self) -> frozenset[Task]: method encloses (line 432) | def encloses(self, other: CancelStatus | None) -> bool: method close (line 442) | def close(self) -> None: method parent_cancellation_is_visible_to_us (line 471) | def parent_cancellation_is_visible_to_us(self) -> bool: method recalculate (line 478) | def recalculate(self) -> None: method _mark_abandoned (line 505) | def _mark_abandoned(self) -> None: method effective_deadline (line 510) | def effective_deadline(self) -> float: class CancelScope (line 544) | class CancelScope: method __attrs_post_init__ (line 600) | def __attrs_post_init__(self) -> None: method __enter__ (line 613) | def __enter__(self) -> Self: method _close (line 633) | def _close(self, exc: BaseException | None) -> BaseException | None: method __exit__ (line 703) | def __exit__( method __repr__ (line 735) | def __repr__(self) -> str: method _might_change_registered_deadline (line 762) | def _might_change_registered_deadline(self) -> Iterator[None]: method deadline (line 786) | def deadline(self) -> float: method deadline (line 821) | def deadline(self, new_deadline: float) -> None: method relative_deadline (line 837) | def relative_deadline(self) -> float: method relative_deadline (line 860) | def relative_deadline(self, new_relative_deadline: float) -> None: method is_relative (line 877) | def is_relative(self) -> bool | None: method shield (line 886) | def shield(self) -> bool: method shield (line 911) | def shield(self, new_value: bool) -> None: method _cancel (line 919) | def _cancel(self, cancel_reason: CancelReason | None) -> None: method cancel (line 937) | def cancel(self, reason: str | None = None) -> None: method cancel_called (line 956) | def cancel_called(self) -> bool: class TaskStatus (line 992) | class TaskStatus(Protocol[StatusT_contra]): method started (line 999) | def started(self: TaskStatus[None]) -> None: ... method started (line 1002) | def started(self, value: StatusT_contra) -> None: ... method started (line 1004) | def started(self, value: StatusT_contra | None = None) -> None: class _TaskStatus (line 1014) | class _TaskStatus(TaskStatus[StatusT]): method __repr__ (line 1020) | def __repr__(self) -> str: method started (line 1024) | def started(self: _TaskStatus[None]) -> None: ... method started (line 1027) | def started(self: _TaskStatus[StatusT], value: StatusT) -> None: ... method started (line 1029) | def started(self, value: StatusT | None = None) -> None: class NurseryManager (line 1083) | class NurseryManager: method __aenter__ (line 1096) | async def __aenter__(self) -> Nursery: method __aexit__ (line 1107) | async def __aexit__( method __enter__ (line 1138) | def __enter__(self) -> NoReturn: method __exit__ (line 1143) | def __exit__( function open_nursery (line 1152) | def open_nursery( class Nursery (line 1192) | class Nursery(metaclass=NoPublicConstructor): method __init__ (line 1214) | def __init__( method child_tasks (line 1241) | def child_tasks(self) -> frozenset[Task]: method parent_task (line 1247) | def parent_task(self) -> Task: method _add_exc (line 1251) | def _add_exc(self, exc: BaseException, reason: CancelReason | None) ->... method _check_nursery_closed (line 1255) | def _check_nursery_closed(self) -> None: method _child_finished (line 1262) | def _child_finished( method _nested_child_finished (line 1282) | async def _nested_child_finished( method start_soon (line 1349) | def start_soon( method start (line 1397) | async def start( # type: ignore[explicit-any] method __del__ (line 1486) | def __del__(self) -> None: class Task (line 1497) | class Task(metaclass=NoPublicConstructor): # type: ignore[explicit-any] method __repr__ (line 1532) | def __repr__(self) -> str: method parent_nursery (line 1536) | def parent_nursery(self) -> Nursery | None: method eventual_parent_nursery (line 1547) | def eventual_parent_nursery(self) -> Nursery | None: method child_nurseries (line 1559) | def child_nurseries(self) -> list[Nursery]: method iter_await_frames (line 1567) | def iter_await_frames(self) -> Iterator[tuple[types.FrameType, int]]: method _activate_cancel_status (line 1626) | def _activate_cancel_status(self, cancel_status: CancelStatus | None) ... method _attempt_abort (line 1635) | def _attempt_abort(self, raise_cancel: _core.RaiseCancelT) -> None: method _attempt_delivery_of_any_pending_cancel (line 1654) | def _attempt_delivery_of_any_pending_cancel(self) -> None: method _attempt_delivery_of_pending_ki (line 1674) | def _attempt_delivery_of_pending_ki(self) -> None: class RunStatistics (line 1692) | class RunStatistics: class GuestState (line 1744) | class GuestState: # type: ignore[explicit-any] method guest_tick (line 1752) | def guest_tick(self) -> None: class Runner (line 1795) | class Runner: # type: ignore[explicit-any] method force_guest_tick_asap (line 1827) | def force_guest_tick_asap(self) -> None: method close (line 1833) | def close(self) -> None: method current_statistics (line 1843) | def current_statistics(self) -> RunStatistics: method current_time (line 1876) | def current_time(self) -> float: method current_clock (line 1889) | def current_clock(self) -> Clock: method current_root_task (line 1894) | def current_root_task(self) -> Task | None: method reschedule (line 1907) | def reschedule( method spawn_impl (line 1942) | def spawn_impl( method task_exited (line 2020) | def task_exited(self, task: Task, outcome: Outcome[object]) -> None: method spawn_system_task (line 2086) | def spawn_system_task( method init (line 2153) | async def init( method current_trio_token (line 2210) | def current_trio_token(self) -> TrioToken: method deliver_ki (line 2232) | def deliver_ki(self) -> None: method _deliver_ki_cb (line 2237) | def _deliver_ki_cb(self) -> None: method wait_all_tasks_blocked (line 2259) | async def wait_all_tasks_blocked(self, cushion: float = 0.0) -> None: function setup_runner (line 2395) | def setup_runner( function run (line 2433) | def run( function start_guest_run (line 2557) | def start_guest_run( # type: ignore[explicit-any] function unrolled_run (line 2722) | def unrolled_run( class _TaskStatusIgnored (line 2974) | class _TaskStatusIgnored(TaskStatus[object]): method __repr__ (line 2975) | def __repr__(self) -> str: method started (line 2978) | def started(self, value: object = None) -> None: function current_task (line 2985) | def current_task() -> Task: function current_effective_deadline (line 2999) | def current_effective_deadline() -> float: function checkpoint (line 3026) | async def checkpoint() -> None: function checkpoint_if_cancelled (line 3064) | async def checkpoint_if_cancelled() -> None: function in_trio_run (line 3088) | def in_trio_run() -> bool: function in_trio_task (line 3097) | def in_trio_task() -> bool: FILE: src/trio/_core/_run_context.py class RunContext (line 10) | class RunContext(threading.local): FILE: src/trio/_core/_tests/test_asyncgen.py function test_asyncgen_basics (line 19) | def test_asyncgen_basics() -> None: function test_asyncgen_throws_during_finalization (line 96) | async def test_asyncgen_throws_during_finalization( function test_firstiter_after_closing (line 121) | def test_firstiter_after_closing() -> None: function test_interdependent_asyncgen_cleanup_order (line 147) | def test_interdependent_asyncgen_cleanup_order() -> None: function test_last_minute_gc_edge_case (line 189) | def test_last_minute_gc_edge_case() -> None: function step_outside_async_context (line 249) | async def step_outside_async_context(aiter_: AsyncGenerator[int, None]) ... function test_fallback_when_no_hook_claims_it (line 274) | async def test_fallback_when_no_hook_claims_it( function test_delegation_to_existing_hooks (line 304) | def test_delegation_to_existing_hooks() -> None: FILE: src/trio/_core/_tests/test_cancelled.py function test_Cancelled_init (line 15) | def test_Cancelled_init() -> None: function test_Cancelled_str (line 26) | async def test_Cancelled_str() -> None: function test_Cancelled_subclass (line 53) | def test_Cancelled_subclass() -> None: function test_Cancelled_pickle (line 59) | def test_Cancelled_pickle() -> None: function test_cancel_reason (line 68) | async def test_cancel_reason() -> None: function cancelled_task (line 96) | async def cancelled_task( function test_cancel_reason_nursery (line 106) | async def test_cancel_reason_nursery() -> None: function test_cancel_reason_nursery2 (line 120) | async def test_cancel_reason_nursery2() -> None: function test_cancel_reason_nursery3 (line 133) | async def test_cancel_reason_nursery3() -> None: function test_cancel_reason_not_overwritten (line 157) | async def test_cancel_reason_not_overwritten() -> None: function test_cancel_reason_not_overwritten_2 (line 173) | async def test_cancel_reason_not_overwritten_2() -> None: function test_nested_child_source (line 183) | async def test_nested_child_source() -> None: function test_reason_delayed_ki (line 202) | async def test_reason_delayed_ki() -> None: FILE: src/trio/_core/_tests/test_exceptiongroup_gc.py function raiser1 (line 20) | def raiser1() -> NoReturn: function raiser1_2 (line 24) | def raiser1_2() -> NoReturn: function raiser1_3 (line 28) | def raiser1_3() -> NoReturn: function raiser2 (line 32) | def raiser2() -> NoReturn: function raiser2_2 (line 36) | def raiser2_2() -> NoReturn: function get_exc (line 40) | def get_exc(raiser: Callable[[], NoReturn]) -> Exception: function get_tb (line 48) | def get_tb(raiser: Callable[[], NoReturn]) -> TracebackType | None: function test_concat_tb (line 52) | def test_concat_tb() -> None: function test_ExceptionGroup_catch_doesnt_create_cyclic_garbage (line 83) | def test_ExceptionGroup_catch_doesnt_create_cyclic_garbage() -> None: FILE: src/trio/_core/_tests/test_guest_mode.py function trivial_guest_run (line 48) | def trivial_guest_run( function test_guest_trivial (line 119) | def test_guest_trivial() -> None: function test_guest_can_do_io (line 133) | def test_guest_can_do_io() -> None: function test_guest_is_initialized_when_start_returns (line 153) | def test_guest_is_initialized_when_start_returns() -> None: function test_host_can_directly_wake_trio_task (line 203) | def test_host_can_directly_wake_trio_task() -> None: function test_host_altering_deadlines_wakes_trio_up (line 213) | def test_host_altering_deadlines_wakes_trio_up() -> None: function test_guest_mode_sniffio_integration (line 236) | def test_guest_mode_sniffio_integration() -> None: function test_guest_mode_trio_context_detection (line 266) | def test_guest_mode_trio_context_detection() -> None: function test_warn_set_wakeup_fd_overwrite (line 286) | def test_warn_set_wakeup_fd_overwrite() -> None: function test_host_wakeup_doesnt_trigger_wait_all_tasks_blocked (line 350) | def test_host_wakeup_doesnt_trigger_wait_all_tasks_blocked() -> None: function test_guest_warns_if_abandoned (line 426) | def test_guest_warns_if_abandoned() -> None: function aiotrio_run (line 470) | def aiotrio_run( function test_guest_mode_on_asyncio (line 516) | def test_guest_mode_on_asyncio() -> None: function test_guest_mode_internal_errors (line 580) | def test_guest_mode_internal_errors( function test_guest_mode_ki (line 627) | def test_guest_mode_ki() -> None: function test_guest_mode_autojump_clock_threshold_changing (line 659) | def test_guest_mode_autojump_clock_threshold_changing() -> None: function test_guest_mode_asyncgens (line 683) | def test_guest_mode_asyncgens() -> None: function test_guest_mode_asyncgens_garbage_collection (line 716) | def test_guest_mode_asyncgens_garbage_collection() -> None: FILE: src/trio/_core/_tests/test_instrumentation.py class TaskRecorder (line 18) | class TaskRecorder(_abc.Instrument): method before_run (line 21) | def before_run(self) -> None: method task_scheduled (line 24) | def task_scheduled(self, task: Task) -> None: method before_task_step (line 27) | def before_task_step(self, task: Task) -> None: method after_task_step (line 31) | def after_task_step(self, task: Task) -> None: method after_run (line 35) | def after_run(self) -> None: method filter_tasks (line 38) | def filter_tasks(self, tasks: Container[Task]) -> Iterable[tuple[str, ... function test_instruments (line 46) | def test_instruments(recwarn: object) -> None: function test_instruments_interleave (line 91) | def test_instruments_interleave() -> None: function test_null_instrument (line 134) | def test_null_instrument() -> None: function test_instrument_before_after_run (line 146) | def test_instrument_before_after_run() -> None: function test_instrument_task_spawn_exit (line 163) | def test_instrument_task_spawn_exit() -> None: function test_instruments_crash (line 183) | def test_instruments_crash(caplog: pytest.LogCaptureFixture) -> None: function test_instruments_monkeypatch (line 215) | def test_instruments_monkeypatch() -> None: function test_instrument_that_raises_on_getattr (line 250) | def test_instrument_that_raises_on_getattr() -> None: function test_instrument_call_trio_context (line 271) | def test_instrument_call_trio_context() -> None: FILE: src/trio/_core/_tests/test_io.py function fill_socket (line 28) | def fill_socket(sock: stdlib_socket.socket) -> None: function drain_socket (line 36) | def drain_socket(sock: stdlib_socket.socket) -> None: function socketpair (line 50) | def socketpair() -> Generator[SocketPair, None, None]: function also_using_fileno (line 59) | def also_using_fileno( function test_wait_basic (line 96) | async def test_wait_basic( function test_double_read (line 166) | async def test_double_read(socketpair: SocketPair, wait_readable: WaitSo... function test_double_write (line 179) | async def test_double_write(socketpair: SocketPair, wait_writable: WaitS... function test_interrupted_by_close (line 195) | async def test_interrupted_by_close( function test_socket_simultaneous_read_write (line 222) | async def test_socket_simultaneous_read_write( function test_socket_actual_streaming (line 254) | async def test_socket_actual_streaming( function test_notify_closing_on_invalid_object (line 307) | async def test_notify_closing_on_invalid_object() -> None: function test_wait_on_invalid_object (line 323) | async def test_wait_on_invalid_object() -> None: function test_io_manager_statistics (line 338) | async def test_io_manager_statistics() -> None: function test_io_manager_kqueue_monitors_statistics (line 388) | async def test_io_manager_kqueue_monitors_statistics() -> None: function test_can_survive_unnotified_close (line 425) | async def test_can_survive_unnotified_close() -> None: FILE: src/trio/_core/_tests/test_ki.py function ki_self (line 40) | def ki_self() -> None: function test_ki_self (line 44) | def test_ki_self() -> None: function test_ki_enabled (line 49) | async def test_ki_enabled() -> None: function test_ki_enabled_after_yield_briefly (line 118) | async def test_ki_enabled_after_yield_briefly() -> None: function test_generator_based_context_manager_throw (line 142) | async def test_generator_based_context_manager_throw() -> None: function test_async_generator_agen_protection (line 163) | async def test_async_generator_agen_protection() -> None: function test_native_agen_protection (line 207) | async def test_native_agen_protection() -> None: function _check_agen (line 229) | async def _check_agen(agen_fn: Callable[[], AsyncIterator[None]]) -> None: function test_ki_disabled_out_of_context (line 247) | def test_ki_disabled_out_of_context() -> None: function test_ki_disabled_in_del (line 251) | def test_ki_disabled_in_del() -> None: function test_ki_protection_works (line 270) | def test_ki_protection_works() -> None: function test_ki_is_good_neighbor (line 490) | def test_ki_is_good_neighbor() -> None: function test_ki_with_broken_threads (line 511) | def test_ki_with_broken_threads() -> None: function _identity (line 534) | def _identity(v: _T) -> _T: function test_ki_does_not_leak_across_different_calls_to_inner_functions (line 546) | async def test_ki_does_not_leak_across_different_calls_to_inner_function... function test_ki_protection_check_does_not_freeze_locals (line 562) | async def test_ki_protection_check_does_not_freeze_locals() -> None: function test_identity_weakref_internals (line 575) | def test_identity_weakref_internals() -> None: function test_weak_key_identity_dict_remove_callback_keyerror (line 595) | def test_weak_key_identity_dict_remove_callback_keyerror() -> None: function test_weak_key_identity_dict_remove_callback_selfref_expired (line 616) | def test_weak_key_identity_dict_remove_callback_selfref_expired() -> None: function _protected_async_gen_fn (line 640) | async def _protected_async_gen_fn() -> AsyncGenerator[None, None]: function _protected_async_fn (line 645) | async def _protected_async_fn() -> None: function _protected_gen_fn (line 650) | def _protected_gen_fn() -> Generator[None, None, None]: function _unprotected_async_gen_fn (line 655) | async def _unprotected_async_gen_fn() -> AsyncGenerator[None, None]: function _unprotected_async_fn (line 660) | async def _unprotected_async_fn() -> None: function _unprotected_gen_fn (line 665) | def _unprotected_gen_fn() -> Generator[None, None, None]: function _consume_async_generator (line 669) | async def _consume_async_generator(agen: AsyncGenerator[None, None]) -> ... function _consume_function_for_coverage (line 678) | def _consume_function_for_coverage( function test_enable_disable_ki_protection_passes_on_inspect_flags (line 691) | def test_enable_disable_ki_protection_passes_on_inspect_flags() -> None: FILE: src/trio/_core/_tests/test_local.py function test_runvar_smoketest (line 10) | def test_runvar_smoketest() -> None: function test_runvar_resetting (line 39) | def test_runvar_resetting() -> None: function test_runvar_sync (line 72) | def test_runvar_sync() -> None: function test_accessing_runvar_outside_run_call_fails (line 103) | def test_accessing_runvar_outside_run_call_fails() -> None: FILE: src/trio/_core/_tests/test_mock_clock.py function test_mock_clock (line 15) | def test_mock_clock() -> None: function test_mock_clock_autojump (line 59) | async def test_mock_clock_autojump(mock_clock: MockClock) -> None: function test_mock_clock_autojump_interference (line 100) | async def test_mock_clock_autojump_interference(mock_clock: MockClock) -... function test_mock_clock_autojump_preset (line 118) | def test_mock_clock_autojump_preset() -> None: function test_mock_clock_autojump_0_and_wait_all_tasks_blocked_0 (line 128) | async def test_mock_clock_autojump_0_and_wait_all_tasks_blocked_0( function test_mock_clock_autojump_0_and_wait_all_tasks_blocked_nonzero (line 156) | async def test_mock_clock_autojump_0_and_wait_all_tasks_blocked_nonzero( function test_initialization_doesnt_mutate_runner (line 181) | async def test_initialization_doesnt_mutate_runner() -> None: FILE: src/trio/_core/_tests/test_parking_lot.py function test_parking_lot_basic (line 23) | async def test_parking_lot_basic() -> None: function cancellable_waiter (line 98) | async def cancellable_waiter( function test_parking_lot_cancel (line 115) | async def test_parking_lot_cancel() -> None: function test_parking_lot_repark (line 142) | async def test_parking_lot_repark() -> None: function test_parking_lot_repark_with_count (line 196) | async def test_parking_lot_repark_with_count() -> None: function dummy_task (line 228) | async def dummy_task( function test_parking_lot_breaker_basic (line 235) | async def test_parking_lot_breaker_basic() -> None: function test_parking_lot_break_parking_tasks (line 257) | async def test_parking_lot_break_parking_tasks() -> None: function test_parking_lot_breaker_registration (line 282) | async def test_parking_lot_breaker_registration() -> None: function test_parking_lot_breaker_rebreak (line 320) | async def test_parking_lot_breaker_rebreak() -> None: function test_parking_lot_multiple_breakers_exit (line 335) | async def test_parking_lot_multiple_breakers_exit() -> None: function test_parking_lot_breaker_register_exited_task (line 354) | async def test_parking_lot_breaker_register_exited_task() -> None: function test_parking_lot_break_itself (line 370) | async def test_parking_lot_break_itself() -> None: FILE: src/trio/_core/_tests/test_run.py function sleep_forever (line 63) | async def sleep_forever() -> object: function not_none (line 67) | def not_none(x: T | None) -> T: function test_basic (line 76) | def test_basic() -> None: function test_initial_task_error (line 97) | def test_initial_task_error() -> None: function test_run_nesting (line 106) | def test_run_nesting() -> None: function test_nursery_warn_use_async_with (line 118) | async def test_nursery_warn_use_async_with() -> None: function test_nursery_main_block_error_basic (line 132) | async def test_nursery_main_block_error_basic() -> None: function test_child_crash_basic (line 140) | async def test_child_crash_basic() -> None: function test_basic_interleave (line 152) | async def test_basic_interleave() -> None: function test_task_crash_propagation (line 169) | def test_task_crash_propagation() -> None: function test_main_and_task_both_crash (line 194) | def test_main_and_task_both_crash() -> None: function test_two_child_crashes (line 209) | def test_two_child_crashes() -> None: function test_child_crash_wakes_parent (line 222) | async def test_child_crash_wakes_parent() -> None: function test_reschedule (line 232) | async def test_reschedule() -> None: function test_current_time (line 264) | async def test_current_time() -> None: function test_current_time_with_mock_clock (line 273) | async def test_current_time_with_mock_clock(mock_clock: _core.MockClock)... function test_current_clock (line 281) | async def test_current_clock(mock_clock: _core.MockClock) -> None: function test_current_task (line 285) | async def test_current_task() -> None: function test_root_task (line 295) | async def test_root_task() -> None: function test_out_of_context (line 300) | def test_out_of_context() -> None: function test_current_statistics (line 307) | async def test_current_statistics(mock_clock: _core.MockClock) -> None: function test_cancel_scope_repr (line 357) | async def test_cancel_scope_repr(mock_clock: _core.MockClock) -> None: function test_cancel_scope_validation (line 373) | async def test_cancel_scope_validation() -> None: function test_cancel_points (line 403) | def test_cancel_points() -> None: function test_cancel_edge_cases (line 441) | async def test_cancel_edge_cases() -> None: function test_cancel_scope_exceptiongroup_filtering (line 459) | async def test_cancel_scope_exceptiongroup_filtering() -> None: function test_precancelled_task (line 496) | async def test_precancelled_task() -> None: function test_cancel_shielding (line 512) | async def test_cancel_shielding() -> None: function test_cancel_inheritance (line 553) | async def test_cancel_inheritance() -> None: function test_cancel_shield_abort (line 575) | async def test_cancel_shield_abort() -> None: function test_basic_timeout (line 606) | async def test_basic_timeout(mock_clock: _core.MockClock) -> None: function test_cancel_scope_nesting (line 643) | async def test_cancel_scope_nesting() -> None: function test_unshield_while_cancel_propagating (line 682) | async def test_unshield_while_cancel_propagating() -> None: function test_cancel_unbound (line 694) | async def test_cancel_unbound() -> None: function test_cancel_scope_misnesting_1 (line 768) | async def test_cancel_scope_misnesting_1() -> None: function test_cancel_scope_misnesting_2 (line 779) | async def test_cancel_scope_misnesting_2() -> None: function test_cancel_scope_misnesting_3 (line 838) | async def test_cancel_scope_misnesting_3() -> None: function no_cause_or_context (line 856) | def no_cause_or_context(e: BaseException) -> bool: function test_nursery_misnest (line 860) | async def test_nursery_misnest() -> None: function test_nursery_nested_child_misnest (line 877) | def test_nursery_nested_child_misnest() -> None: function test_asyncexitstack_nursery_misnest (line 896) | async def test_asyncexitstack_nursery_misnest() -> None: function test_asyncexitstack_nursery_misnest_cleanup (line 933) | def test_asyncexitstack_nursery_misnest_cleanup() -> None: function test_timekeeping (line 980) | async def test_timekeeping() -> None: function test_failed_abort (line 1000) | async def test_failed_abort() -> None: function test_broken_abort (line 1033) | def test_broken_abort() -> None: function test_error_in_run_loop (line 1066) | def test_error_in_run_loop() -> None: function test_spawn_system_task (line 1078) | async def test_spawn_system_task() -> None: function test_system_task_crash (line 1092) | def test_system_task_crash() -> None: function test_system_task_crash_ExceptionGroup (line 1104) | def test_system_task_crash_ExceptionGroup() -> None: function test_system_task_crash_plus_Cancelled (line 1134) | def test_system_task_crash_plus_Cancelled() -> None: function test_system_task_crash_KeyboardInterrupt (line 1166) | def test_system_task_crash_KeyboardInterrupt() -> None: function test_yield_briefly_checks_for_timeout (line 1191) | async def test_yield_briefly_checks_for_timeout(mock_clock: _core.MockCl... function test_exc_info (line 1205) | async def test_exc_info() -> None: function test_exc_info_after_throw_suppressed (line 1273) | async def test_exc_info_after_throw_suppressed() -> None: function test_exception_chaining_after_throw (line 1303) | async def test_exception_chaining_after_throw() -> None: function test_exc_info_after_throw_to_inner_suppressed (line 1336) | async def test_exc_info_after_throw_to_inner_suppressed() -> None: function test_exception_chaining_after_throw_to_inner (line 1368) | async def test_exception_chaining_after_throw_to_inner() -> None: function test_nursery_exception_chaining_doesnt_make_context_loops (line 1403) | async def test_nursery_exception_chaining_doesnt_make_context_loops() ->... function test_TrioToken_identity (line 1416) | def test_TrioToken_identity() -> None: function test_TrioToken_run_sync_soon_basic (line 1430) | async def test_TrioToken_run_sync_soon_basic() -> None: function test_TrioToken_run_sync_soon_too_late (line 1443) | def test_TrioToken_run_sync_soon_too_late() -> None: function test_TrioToken_run_sync_soon_idempotent (line 1455) | async def test_TrioToken_run_sync_soon_idempotent() -> None: function test_TrioToken_run_sync_soon_idempotent_requeue (line 1482) | def test_TrioToken_run_sync_soon_idempotent_requeue() -> None: function test_TrioToken_run_sync_soon_after_main_crash (line 1506) | def test_TrioToken_run_sync_soon_after_main_crash() -> None: function test_TrioToken_run_sync_soon_crashes (line 1522) | def test_TrioToken_run_sync_soon_crashes() -> None: function test_TrioToken_run_sync_soon_FIFO (line 1546) | async def test_TrioToken_run_sync_soon_FIFO() -> None: function test_TrioToken_run_sync_soon_starvation_resistance (line 1556) | def test_TrioToken_run_sync_soon_starvation_resistance() -> None: function test_TrioToken_run_sync_soon_threaded_stress_test (line 1584) | def test_TrioToken_run_sync_soon_threaded_stress_test() -> None: function test_TrioToken_run_sync_soon_massive_queue (line 1612) | async def test_TrioToken_run_sync_soon_massive_queue() -> None: function test_TrioToken_run_sync_soon_late_crash (line 1634) | def test_TrioToken_run_sync_soon_late_crash() -> None: function test_slow_abort_basic (line 1660) | async def test_slow_abort_basic() -> None: function test_slow_abort_edge_cases (line 1676) | async def test_slow_abort_edge_cases() -> None: function test_task_tree_introspection (line 1719) | async def test_task_tree_introspection() -> None: function test_nursery_closure (line 1791) | async def test_nursery_closure() -> None: function test_spawn_name (line 1808) | async def test_spawn_name() -> None: function test_current_effective_deadline (line 1830) | async def test_current_effective_deadline(mock_clock: _core.MockClock) -... function test_nice_error_on_bad_calls_to_run_or_spawn (line 1852) | def test_nice_error_on_bad_calls_to_run_or_spawn() -> None: function test_calling_asyncio_function_gives_nice_error (line 1904) | def test_calling_asyncio_function_gives_nice_error() -> None: function test_asyncio_function_inside_nursery_does_not_explode (line 1920) | async def test_asyncio_function_inside_nursery_does_not_explode() -> None: function test_trivial_yields (line 1928) | async def test_trivial_yields() -> None: function test_nursery_start (line 1967) | async def test_nursery_start(autojump_clock: _core.MockClock) -> None: function test_task_nursery_stack (line 2095) | async def test_task_nursery_stack() -> None: function test_nursery_start_with_cancelled_nursery (line 2108) | async def test_nursery_start_with_cancelled_nursery() -> None: function test_nursery_start_keeps_nursery_open (line 2152) | async def test_nursery_start_keeps_nursery_open( function test_nursery_explicit_exception (line 2197) | async def test_nursery_explicit_exception() -> None: function test_nursery_stop_iteration (line 2203) | async def test_nursery_stop_iteration() -> None: function test_nursery_stop_async_iteration (line 2213) | async def test_nursery_stop_async_iteration() -> None: function test_traceback_frame_removal (line 2270) | async def test_traceback_frame_removal() -> None: function test_contextvar_support (line 2291) | def test_contextvar_support() -> None: function test_contextvar_multitask (line 2310) | async def test_contextvar_multitask() -> None: function test_system_task_contexts (line 2330) | def test_system_task_contexts() -> None: function test_Nursery_init (line 2350) | async def test_Nursery_init() -> None: function test_Nursery_private_init (line 2360) | async def test_Nursery_private_init() -> None: function test_Nursery_subclass (line 2366) | def test_Nursery_subclass() -> None: function test_CancelScope_subclass (line 2371) | def test_CancelScope_subclass() -> None: function test_sniffio_integration (line 2376) | def test_sniffio_integration() -> None: function test_Task_custom_sleep_data (line 2414) | async def test_Task_custom_sleep_data() -> None: function async_yield (line 2424) | def async_yield(value: T) -> Generator[T, None, None]: function test_permanently_detach_coroutine_object (line 2428) | async def test_permanently_detach_coroutine_object() -> None: function test_detach_and_reattach_coroutine_object (line 2482) | async def test_detach_and_reattach_coroutine_object() -> None: function test_detached_coroutine_cancellation (line 2530) | async def test_detached_coroutine_cancellation() -> None: function test_async_function_implemented_in_C (line 2562) | def test_async_function_implemented_in_C() -> None: function test_very_deep_cancel_scope_nesting (line 2586) | async def test_very_deep_cancel_scope_nesting() -> None: function test_cancel_scope_deadline_duplicates (line 2596) | async def test_cancel_scope_deadline_duplicates() -> None: function test_simple_cancel_scope_usage_doesnt_create_cyclic_garbage (line 2614) | async def test_simple_cancel_scope_usage_doesnt_create_cyclic_garbage() ... function test_cancel_scope_exit_doesnt_create_cyclic_garbage (line 2656) | async def test_cancel_scope_exit_doesnt_create_cyclic_garbage() -> None: function test_nursery_cancel_doesnt_create_cyclic_garbage (line 2694) | async def test_nursery_cancel_doesnt_create_cyclic_garbage() -> None: function test_locals_destroyed_promptly_on_cancel (line 2731) | async def test_locals_destroyed_promptly_on_cancel() -> None: function _create_kwargs (line 2752) | def _create_kwargs(strictness: bool | None) -> dict[str, bool]: function test_setting_strict_exception_groups (line 2766) | def test_setting_strict_exception_groups( function test_nursery_collapse (line 2809) | async def test_nursery_collapse(strict: bool | None) -> None: function test_cancel_scope_no_cancellederror (line 2833) | async def test_cancel_scope_no_cancellederror() -> None: function test_trio_run_strict_before_started (line 2854) | def test_trio_run_strict_before_started( function test_start_exception_preserves_cause_and_context (line 2923) | async def test_start_exception_preserves_cause_and_context() -> None: function test_internal_error_old_nursery_multiple_tasks (line 2944) | async def test_internal_error_old_nursery_multiple_tasks() -> None: function no_other_refs (line 2962) | def no_other_refs() -> list[object]: function no_other_refs (line 2967) | def no_other_refs() -> list[object]: function test_ki_protection_doesnt_leave_cyclic_garbage (line 2979) | async def test_ki_protection_doesnt_leave_cyclic_garbage() -> None: function test_context_run_tb_frames (line 3008) | def test_context_run_tb_frames() -> None: function test_trio_context_detection (line 3018) | def test_trio_context_detection() -> None: FILE: src/trio/_core/_tests/test_thread_cache.py function test_thread_cache_basics (line 22) | def test_thread_cache_basics() -> None: function test_thread_cache_deref (line 38) | def test_thread_cache_deref() -> None: function test_spawning_new_thread_from_deliver_reuses_starting_thread (line 62) | def test_spawning_new_thread_from_deliver_reuses_starting_thread() -> None: function test_idle_threads_exit (line 97) | def test_idle_threads_exit(monkeypatch: pytest.MonkeyPatch) -> None: function _join_started_threads (line 113) | def _join_started_threads() -> Iterator[None]: function test_race_between_idle_exit_and_job_assignment (line 124) | def test_race_between_idle_exit_and_job_assignment( function test_raise_in_deliver (line 179) | def test_raise_in_deliver(capfd: pytest.CaptureFixture[str]) -> None: function test_clear_thread_cache_after_fork (line 202) | def test_clear_thread_cache_after_fork() -> None: FILE: src/trio/_core/_tests/test_tutil.py function test_check_sequence_matches (line 6) | def test_check_sequence_matches() -> None: FILE: src/trio/_core/_tests/test_unbounded_queue.py function test_UnboundedQueue_basic (line 15) | async def test_UnboundedQueue_basic() -> None: function test_UnboundedQueue_blocking (line 40) | async def test_UnboundedQueue_blocking() -> None: function test_UnboundedQueue_fairness (line 72) | async def test_UnboundedQueue_fairness() -> None: function test_UnboundedQueue_trivial_yields (line 119) | async def test_UnboundedQueue_trivial_yields() -> None: function test_UnboundedQueue_no_spurious_wakeups (line 132) | async def test_UnboundedQueue_no_spurious_wakeups() -> None: FILE: src/trio/_core/_tests/test_windows.py function test_winerror (line 39) | def test_winerror(monkeypatch: pytest.MonkeyPatch) -> None: function test_completion_key_listen (line 92) | async def test_completion_key_listen() -> None: function test_readinto_overlapped (line 121) | async def test_readinto_overlapped() -> None: function pipe_with_overlapped_read (line 172) | def pipe_with_overlapped_read() -> Generator[tuple[BufferedWriter, int],... function test_forgot_to_register_with_iocp (line 186) | def test_forgot_to_register_with_iocp() -> None: function test_too_late_to_cancel (line 223) | async def test_too_late_to_cancel() -> None: function test_lsp_that_hooks_select_gives_good_error (line 251) | def test_lsp_that_hooks_select_gives_good_error( function test_lsp_that_completely_hides_base_socket_gives_good_error (line 277) | def test_lsp_that_completely_hides_base_socket_gives_good_error( FILE: src/trio/_core/_tests/tutil.py function gc_collect_harder (line 48) | def gc_collect_harder() -> None: function ignore_coroutine_never_awaited_warnings (line 67) | def ignore_coroutine_never_awaited_warnings() -> Generator[None, None, N... function _noop (line 78) | def _noop(*args: object, **kwargs: object) -> None: function restore_unraisablehook (line 83) | def restore_unraisablehook() -> Generator[None, None, None]: function check_sequence_matches (line 95) | def check_sequence_matches(seq: Sequence[T], template: Iterable[T | set[... function create_asyncio_future_in_new_loop (line 115) | def create_asyncio_future_in_new_loop() -> asyncio.Future[object]: FILE: src/trio/_core/_tests/type_tests/nursery_start.py function task_0 (line 11) | async def task_0() -> None: ... function task_1a (line 14) | async def task_1a(value: int) -> None: ... function task_1b (line 17) | async def task_1b(value: str) -> None: ... function task_2a (line 20) | async def task_2a(a: int, b: str) -> None: ... function task_2b (line 23) | async def task_2b(a: str, b: int) -> None: ... function task_2c (line 26) | async def task_2c(a: str, b: int, optional: bool = False) -> None: ... function task_requires_kw (line 29) | async def task_requires_kw(a: int, *, b: bool) -> None: ... function task_startable_1 (line 32) | async def task_startable_1( function task_startable_2 (line 39) | async def task_startable_2( function task_requires_start (line 47) | async def task_requires_start(*, task_status: TaskStatus[str]) -> None: function task_pos_or_kw (line 51) | async def task_pos_or_kw(value: str, task_status: TaskStatus[int]) -> None: function check_start_soon (line 55) | def check_start_soon(nursery: Nursery) -> None: FILE: src/trio/_core/_tests/type_tests/run.py function sleep_sort (line 12) | async def sleep_sort(values: Sequence[float]) -> list[float]: function has_optional (line 16) | async def has_optional(arg: int | None = None) -> int: function foo_overloaded (line 21) | async def foo_overloaded(arg: int) -> str: ... function foo_overloaded (line 25) | async def foo_overloaded(arg: str) -> int: ... function foo_overloaded (line 28) | async def foo_overloaded(arg: int | str) -> int | str: FILE: src/trio/_core/_thread_cache.py function _to_os_thread_name (line 21) | def _to_os_thread_name(name: str) -> bytes: function get_os_thread_name_func (line 28) | def get_os_thread_name_func() -> Callable[[int | None, str], None] | None: class WorkerThread (line 132) | class WorkerThread(Generic[RetT]): method __init__ (line 135) | def __init__(self, thread_cache: ThreadCache) -> None: method _handle_job (line 161) | def _handle_job(self) -> None: method _work (line 192) | def _work(self) -> None: class ThreadCache (line 215) | class ThreadCache: method __init__ (line 218) | def __init__(self) -> None: method start_thread_soon (line 221) | def start_thread_soon( function start_thread_soon (line 239) | def start_thread_soon( function clear_worker_threads (line 306) | def clear_worker_threads() -> ( FILE: src/trio/_core/_traps.py class CancelShieldedCheckpoint (line 34) | class CancelShieldedCheckpoint: class WaitTaskRescheduled (line 40) | class WaitTaskRescheduled: class PermanentlyDetachCoroutineObject (line 46) | class PermanentlyDetachCoroutineObject: function _real_async_yield (line 66) | def _real_async_yield( function cancel_shielded_checkpoint (line 82) | async def cancel_shielded_checkpoint() -> None: class Abort (line 99) | class Abort(enum.Enum): function wait_task_rescheduled (line 115) | async def wait_task_rescheduled( # type: ignore[explicit-any] function permanently_detach_coroutine_object (line 219) | async def permanently_detach_coroutine_object( function temporarily_detach_coroutine_object (line 252) | async def temporarily_detach_coroutine_object( function reattach_detached_coroutine_object (line 290) | async def reattach_detached_coroutine_object(task: Task, yield_value: ob... FILE: src/trio/_core/_unbounded_queue.py class UnboundedQueueStatistics (line 18) | class UnboundedQueueStatistics: class UnboundedQueue (line 34) | class UnboundedQueue(Generic[T]): method __init__ (line 71) | def __init__(self) -> None: method __repr__ (line 77) | def __repr__(self) -> str: method qsize (line 80) | def qsize(self) -> int: method empty (line 84) | def empty(self) -> bool: method put_nowait (line 94) | def put_nowait(self, obj: T) -> None: method _get_batch_protected (line 112) | def _get_batch_protected(self) -> list[T]: method get_batch_nowait (line 118) | def get_batch_nowait(self) -> list[T]: method get_batch (line 134) | async def get_batch(self) -> list[T]: method statistics (line 152) | def statistics(self) -> UnboundedQueueStatistics: method __aiter__ (line 159) | def __aiter__(self) -> Self: method __anext__ (line 162) | async def __anext__(self) -> list[T]: FILE: src/trio/_core/_wakeup_socketpair.py class WakeupSocketpair (line 12) | class WakeupSocketpair: method __init__ (line 13) | def __init__(self) -> None: method wakeup_thread_and_signal_safe (line 37) | def wakeup_thread_and_signal_safe(self) -> None: method wait_woken (line 41) | async def wait_woken(self) -> None: method drain (line 45) | def drain(self) -> None: method wakeup_on_signals (line 52) | def wakeup_on_signals(self) -> None: method close (line 71) | def close(self) -> None: FILE: src/trio/_core/_windows_cffi.py class _Kernel32 (line 27) | class _Kernel32(Protocol): method CreateIoCompletionPort (line 30) | def CreateIoCompletionPort( method CreateEventA (line 39) | def CreateEventA( method SetFileCompletionNotificationModes (line 48) | def SetFileCompletionNotificationModes( method PostQueuedCompletionStatus (line 55) | def PostQueuedCompletionStatus( method CancelIoEx (line 64) | def CancelIoEx( method WriteFile (line 71) | def WriteFile( method ReadFile (line 82) | def ReadFile( method GetQueuedCompletionStatusEx (line 93) | def GetQueuedCompletionStatusEx( method CreateFileW (line 104) | def CreateFileW( method WaitForSingleObject (line 116) | def WaitForSingleObject(self, hHandle: Handle, dwMilliseconds: int, /)... method WaitForMultipleObjects (line 118) | def WaitForMultipleObjects( method SetEvent (line 127) | def SetEvent(self, handle: Handle, /) -> None: ... method CloseHandle (line 129) | def CloseHandle(self, handle: Handle, /) -> bool: ... method DeviceIoControl (line 131) | def DeviceIoControl( class _Nt (line 147) | class _Nt(Protocol): method RtlNtStatusToDosError (line 150) | def RtlNtStatusToDosError(self, status: int, /) -> ErrorCodes: ... class _Ws2 (line 153) | class _Ws2(Protocol): method WSAGetLastError (line 156) | def WSAGetLastError(self) -> int: ... method WSAIoctl (line 158) | def WSAIoctl( class _DummyStruct (line 174) | class _DummyStruct(Protocol): class _DummyUnion (line 179) | class _DummyUnion(Protocol): class _Overlapped (line 184) | class _Overlapped(Protocol): class ErrorCodes (line 206) | class ErrorCodes(enum.IntEnum): class FileFlags (line 221) | class FileFlags(enum.IntFlag): class AFDPollFlags (line 235) | class AFDPollFlags(enum.IntFlag): class WSAIoctls (line 255) | class WSAIoctls(enum.IntEnum): class CompletionModes (line 261) | class CompletionModes(enum.IntFlag): class IoControlCodes (line 266) | class IoControlCodes(enum.IntEnum): function _handle (line 275) | def _handle(obj: int | CData) -> Handle: function handle_array (line 287) | def handle_array(count: int) -> HandleArray: function raise_winerror (line 292) | def raise_winerror( FILE: src/trio/_deprecate.py class TrioDeprecationWarning (line 27) | class TrioDeprecationWarning(FutureWarning): function _url_for_issue (line 45) | def _url_for_issue(issue: int) -> str: function _stringify (line 49) | def _stringify(thing: object) -> str: function warn_deprecated (line 55) | def warn_deprecated( function deprecated (line 81) | def deprecated( function deprecated_alias (line 126) | def deprecated_alias( class DeprecatedAttribute (line 146) | class DeprecatedAttribute: function deprecate_attributes (line 155) | def deprecate_attributes( FILE: src/trio/_dtls.py function packet_header_overhead (line 45) | def packet_header_overhead(sock: SocketType) -> int: function worst_case_mtu (line 52) | def worst_case_mtu(sock: SocketType) -> int: function best_guess_mtu (line 59) | def best_guess_mtu(sock: SocketType) -> int: class ContentType (line 66) | class ContentType(enum.IntEnum): class HandshakeType (line 74) | class HandshakeType(enum.IntEnum): class ProtocolVersion (line 98) | class ProtocolVersion: class BadPacket (line 111) | class BadPacket(Exception): function part_of_handshake_untrusted (line 121) | def part_of_handshake_untrusted(packet: bytes) -> bool: function is_client_hello_untrusted (line 128) | def is_client_hello_untrusted(packet: bytes) -> bool: function to_hex (line 151) | def to_hex(data: bytes) -> str: # pragma: no cover class Record (line 156) | class Record: function records_untrusted (line 163) | def records_untrusted(packet: bytes) -> Iterator[Record]: function encode_record (line 181) | def encode_record(record: Record) -> bytes: class HandshakeFragment (line 201) | class HandshakeFragment: function decode_handshake_fragment_untrusted (line 210) | def decode_handshake_fragment_untrusted(payload: bytes) -> HandshakeFrag... function encode_handshake_fragment (line 240) | def encode_handshake_fragment(hsf: HandshakeFragment) -> bytes: function decode_client_hello_untrusted (line 251) | def decode_client_hello_untrusted(packet: bytes) -> tuple[int, bytes, by... class HandshakeMessage (line 321) | class HandshakeMessage: class PseudoHandshakeMessage (line 331) | class PseudoHandshakeMessage: class OpaqueHandshakeMessage (line 343) | class OpaqueHandshakeMessage: function decode_volley_trusted (line 356) | def decode_volley_trusted( class RecordEncoder (line 404) | class RecordEncoder: method __init__ (line 405) | def __init__(self) -> None: method set_first_record_number (line 408) | def set_first_record_number(self, n: int) -> None: method encode_volley (line 411) | def encode_volley( function _current_cookie_tick (line 547) | def _current_cookie_tick() -> int: function _signable (line 553) | def _signable(*fields: bytes) -> bytes: function _make_cookie (line 560) | def _make_cookie( function valid_cookie (line 582) | def valid_cookie( function challenge_for (line 612) | def challenge_for( class _Queue (line 660) | class _Queue(Generic[_T]): method __init__ (line 661) | def __init__(self, incoming_packets_buffer: int | float) -> None: # n... function _read_loop (line 665) | def _read_loop(read_fn: Callable[[int], bytes]) -> bytes: function handle_client_hello_untrusted (line 676) | async def handle_client_hello_untrusted( function dtls_receive_loop (line 744) | async def dtls_receive_loop( class DTLSChannelStatistics (line 803) | class DTLSChannelStatistics: class DTLSChannel (line 819) | class DTLSChannel(trio.abc.Channel[bytes], metaclass=NoPublicConstructor): method __init__ (line 835) | def __init__( method _set_replaced (line 859) | def _set_replaced(self) -> None: method _check_replaced (line 865) | def _check_replaced(self) -> None: method close (line 878) | def close(self) -> None: method __enter__ (line 899) | def __enter__(self) -> Self: method __exit__ (line 902) | def __exit__( method aclose (line 910) | async def aclose(self) -> None: method _send_volley (line 920) | async def _send_volley(self, volley_messages: list[_AnyHandshakeMessag... method _resend_final_volley (line 929) | async def _resend_final_volley(self) -> None: method do_handshake (line 932) | async def do_handshake(self, *, initial_retransmit_timeout: float = 1.... method send (line 1062) | async def send(self, data: bytes) -> None: method receive (line 1079) | async def receive(self) -> bytes: method set_ciphertext_mtu (line 1105) | def set_ciphertext_mtu(self, new_mtu: int) -> None: method get_cleartext_mtu (line 1140) | def get_cleartext_mtu(self) -> int: method statistics (line 1151) | def statistics(self) -> DTLSChannelStatistics: class DTLSEndpoint (line 1157) | class DTLSEndpoint: method __init__ (line 1181) | def __init__( method _ensure_receive_loop (line 1216) | def _ensure_receive_loop(self) -> None: method __del__ (line 1228) | def __del__(self) -> None: method close (line 1245) | def close(self) -> None: method __enter__ (line 1257) | def __enter__(self) -> Self: method __exit__ (line 1260) | def __exit__( method _check_closed (line 1268) | def _check_closed(self) -> None: method serve (line 1272) | async def serve( method connect (line 1336) | def connect( function set_ssl_context_options (line 1372) | def set_ssl_context_options(ctx: SSL.Context) -> None: FILE: src/trio/_file_io.py class _HasClosed (line 104) | class _HasClosed(Protocol): method closed (line 106) | def closed(self) -> bool: ... class _HasEncoding (line 108) | class _HasEncoding(Protocol): method encoding (line 110) | def encoding(self) -> str: ... class _HasErrors (line 112) | class _HasErrors(Protocol): method errors (line 114) | def errors(self) -> str | None: ... class _HasFileNo (line 116) | class _HasFileNo(Protocol): method fileno (line 117) | def fileno(self) -> int: ... class _HasIsATTY (line 119) | class _HasIsATTY(Protocol): method isatty (line 120) | def isatty(self) -> bool: ... class _HasNewlines (line 122) | class _HasNewlines(Protocol[T_co]): method newlines (line 125) | def newlines(self) -> T_co: ... class _HasReadable (line 127) | class _HasReadable(Protocol): method readable (line 128) | def readable(self) -> bool: ... class _HasSeekable (line 130) | class _HasSeekable(Protocol): method seekable (line 131) | def seekable(self) -> bool: ... class _HasWritable (line 133) | class _HasWritable(Protocol): method writable (line 134) | def writable(self) -> bool: ... class _HasBuffer (line 136) | class _HasBuffer(Protocol): method buffer (line 138) | def buffer(self) -> BinaryIO: ... class _HasRaw (line 140) | class _HasRaw(Protocol): method raw (line 142) | def raw(self) -> io.RawIOBase: ... class _HasLineBuffering (line 144) | class _HasLineBuffering(Protocol): method line_buffering (line 146) | def line_buffering(self) -> bool: ... class _HasCloseFD (line 148) | class _HasCloseFD(Protocol): method closefd (line 150) | def closefd(self) -> bool: ... class _HasName (line 152) | class _HasName(Protocol): method name (line 154) | def name(self) -> str: ... class _HasMode (line 156) | class _HasMode(Protocol): method mode (line 158) | def mode(self) -> str: ... class _CanGetValue (line 160) | class _CanGetValue(Protocol[AnyStr_co]): method getvalue (line 161) | def getvalue(self) -> AnyStr_co: ... class _CanGetBuffer (line 163) | class _CanGetBuffer(Protocol): method getbuffer (line 164) | def getbuffer(self) -> memoryview: ... class _CanFlush (line 166) | class _CanFlush(Protocol): method flush (line 167) | def flush(self) -> None: ... class _CanRead (line 169) | class _CanRead(Protocol[AnyStr_co]): method read (line 170) | def read(self, size: int | None = ..., /) -> AnyStr_co: ... class _CanRead1 (line 172) | class _CanRead1(Protocol): method read1 (line 173) | def read1(self, size: int | None = ..., /) -> bytes: ... class _CanReadAll (line 175) | class _CanReadAll(Protocol[AnyStr_co]): method readall (line 176) | def readall(self) -> AnyStr_co: ... class _CanReadInto (line 178) | class _CanReadInto(Protocol): method readinto (line 179) | def readinto(self, buf: Buffer, /) -> int | None: ... class _CanReadInto1 (line 181) | class _CanReadInto1(Protocol): method readinto1 (line 182) | def readinto1(self, buffer: Buffer, /) -> int: ... class _CanReadLine (line 184) | class _CanReadLine(Protocol[AnyStr_co]): method readline (line 185) | def readline(self, size: int = ..., /) -> AnyStr_co: ... class _CanReadLines (line 187) | class _CanReadLines(Protocol[AnyStr]): method readlines (line 188) | def readlines(self, hint: int = ..., /) -> list[AnyStr]: ... class _CanSeek (line 190) | class _CanSeek(Protocol): method seek (line 191) | def seek(self, target: int, whence: int = 0, /) -> int: ... class _CanTell (line 193) | class _CanTell(Protocol): method tell (line 194) | def tell(self) -> int: ... class _CanTruncate (line 196) | class _CanTruncate(Protocol): method truncate (line 197) | def truncate(self, size: int | None = ..., /) -> int: ... class _CanWrite (line 199) | class _CanWrite(Protocol[T_contra]): method write (line 200) | def write(self, data: T_contra, /) -> int: ... class _CanWriteLines (line 202) | class _CanWriteLines(Protocol[T_contra]): method writelines (line 204) | def writelines(self, lines: Iterable[T_contra], /) -> None: ... class _CanPeek (line 206) | class _CanPeek(Protocol[AnyStr_co]): method peek (line 207) | def peek(self, size: int = 0, /) -> AnyStr_co: ... class _CanDetach (line 209) | class _CanDetach(Protocol[T_co]): method detach (line 211) | def detach(self) -> T_co: ... class _CanClose (line 213) | class _CanClose(Protocol): method close (line 214) | def close(self) -> None: ... class AsyncIOWrapper (line 219) | class AsyncIOWrapper(AsyncResource, Generic[FileT_co]): method __init__ (line 228) | def __init__(self, file: FileT_co) -> None: method wrapped (line 232) | def wrapped(self) -> FileT_co: method __getattr__ (line 239) | def __getattr__(self, name: str) -> object: method __dir__ (line 259) | def __dir__(self) -> Iterable[str]: method __aiter__ (line 265) | def __aiter__(self) -> AsyncIOWrapper[FileT_co]: method __anext__ (line 268) | async def __anext__(self: AsyncIOWrapper[_CanReadLine[AnyStr]]) -> Any... method detach (line 275) | async def detach(self: AsyncIOWrapper[_CanDetach[T]]) -> AsyncIOWrappe... method aclose (line 286) | async def aclose(self: AsyncIOWrapper[_CanClose]) -> None: method closed (line 304) | def closed(self: AsyncIOWrapper[_HasClosed]) -> bool: ... method encoding (line 306) | def encoding(self: AsyncIOWrapper[_HasEncoding]) -> str: ... method errors (line 308) | def errors(self: AsyncIOWrapper[_HasErrors]) -> str | None: ... method newlines (line 310) | def newlines(self: AsyncIOWrapper[_HasNewlines[T]]) -> T: ... method buffer (line 312) | def buffer(self: AsyncIOWrapper[_HasBuffer]) -> BinaryIO: ... method raw (line 314) | def raw(self: AsyncIOWrapper[_HasRaw]) -> io.RawIOBase: ... method line_buffering (line 316) | def line_buffering(self: AsyncIOWrapper[_HasLineBuffering]) -> int: ... method closefd (line 318) | def closefd(self: AsyncIOWrapper[_HasCloseFD]) -> bool: ... method name (line 320) | def name(self: AsyncIOWrapper[_HasName]) -> str: ... method mode (line 322) | def mode(self: AsyncIOWrapper[_HasMode]) -> str: ... method fileno (line 324) | def fileno(self: AsyncIOWrapper[_HasFileNo]) -> int: ... method isatty (line 325) | def isatty(self: AsyncIOWrapper[_HasIsATTY]) -> bool: ... method readable (line 326) | def readable(self: AsyncIOWrapper[_HasReadable]) -> bool: ... method seekable (line 327) | def seekable(self: AsyncIOWrapper[_HasSeekable]) -> bool: ... method writable (line 328) | def writable(self: AsyncIOWrapper[_HasWritable]) -> bool: ... method getvalue (line 329) | def getvalue(self: AsyncIOWrapper[_CanGetValue[AnyStr]]) -> AnyStr: ... method getbuffer (line 330) | def getbuffer(self: AsyncIOWrapper[_CanGetBuffer]) -> memoryview: ... method flush (line 331) | async def flush(self: AsyncIOWrapper[_CanFlush]) -> None: ... method read (line 332) | async def read(self: AsyncIOWrapper[_CanRead[AnyStr]], size: int | Non... method read1 (line 333) | async def read1(self: AsyncIOWrapper[_CanRead1], size: int | None = -1... method readall (line 334) | async def readall(self: AsyncIOWrapper[_CanReadAll[AnyStr]]) -> AnyStr... method readinto (line 335) | async def readinto(self: AsyncIOWrapper[_CanReadInto], buf: Buffer, /)... method readline (line 336) | async def readline(self: AsyncIOWrapper[_CanReadLine[AnyStr]], size: i... method readlines (line 337) | async def readlines(self: AsyncIOWrapper[_CanReadLines[AnyStr]]) -> li... method seek (line 338) | async def seek(self: AsyncIOWrapper[_CanSeek], target: int, whence: in... method tell (line 339) | async def tell(self: AsyncIOWrapper[_CanTell]) -> int: ... method truncate (line 340) | async def truncate(self: AsyncIOWrapper[_CanTruncate], size: int | Non... method write (line 341) | async def write(self: AsyncIOWrapper[_CanWrite[T]], data: T, /) -> int... method writelines (line 342) | async def writelines(self: AsyncIOWrapper[_CanWriteLines[T]], lines: I... method readinto1 (line 343) | async def readinto1(self: AsyncIOWrapper[_CanReadInto1], buffer: Buffe... method peek (line 344) | async def peek(self: AsyncIOWrapper[_CanPeek[AnyStr]], size: int = 0, ... function open_file (line 353) | async def open_file( function open_file (line 366) | async def open_file( function open_file (line 379) | async def open_file( function open_file (line 392) | async def open_file( function open_file (line 405) | async def open_file( function open_file (line 418) | async def open_file( function open_file (line 431) | async def open_file( # type: ignore[explicit-any] # Any usage matches ... function open_file (line 443) | async def open_file( function wrap_file (line 486) | def wrap_file(file: FileT) -> AsyncIOWrapper[FileT]: FILE: src/trio/_highlevel_generic.py function aclose_forcefully (line 16) | async def aclose_forcefully(resource: AsyncResource) -> None: function _is_halfclosable (line 46) | def _is_halfclosable(stream: SendStream) -> TypeGuard[HalfCloseableStream]: class StapledStream (line 53) | class StapledStream( method send_all (line 94) | async def send_all(self, data: bytes | bytearray | memoryview) -> None: method wait_send_all_might_not_block (line 98) | async def wait_send_all_might_not_block(self) -> None: method send_eof (line 102) | async def send_eof(self) -> None: method receive_some (line 116) | async def receive_some(self, max_bytes: int | None = None) -> bytes: method aclose (line 120) | async def aclose(self) -> None: FILE: src/trio/_highlevel_open_tcp_listeners.py function _compute_backlog (line 46) | def _compute_backlog(backlog: int | None) -> int: function open_tcp_listeners (line 57) | async def open_tcp_listeners( function serve_tcp (line 172) | async def serve_tcp( FILE: src/trio/_highlevel_open_tcp_stream.py function close_all (line 120) | def close_all() -> Generator[set[SocketType], None, None]: function reorder_for_rfc_6555_section_5_4 (line 137) | def reorder_for_rfc_6555_section_5_4( # type: ignore[explicit-any] function format_host_port (line 157) | def format_host_port(host: str | bytes, port: int | str) -> str: function open_tcp_stream (line 185) | async def open_tcp_stream( FILE: src/trio/_highlevel_open_unix_stream.py class Closable (line 14) | class Closable(Protocol): method close (line 15) | def close(self) -> None: ... function close_on_error (line 30) | def close_on_error(obj: CloseT) -> Generator[CloseT, None, None]: function open_unix_socket (line 38) | async def open_unix_socket( FILE: src/trio/_highlevel_serve_listeners.py function _run_handler (line 32) | async def _run_handler(stream: StreamT, handler: Handler[StreamT]) -> None: function _serve_one_listener (line 39) | async def _serve_one_listener( function serve_listeners (line 70) | async def serve_listeners( # type: ignore[explicit-any] FILE: src/trio/_highlevel_socket.py function _translate_socket_errors_to_stream_errors (line 44) | def _translate_socket_errors_to_stream_errors() -> Generator[None, None,... class SocketStream (line 55) | class SocketStream(HalfCloseableStream): method __init__ (line 79) | def __init__(self, socket: SocketType) -> None: method send_all (line 109) | async def send_all(self, data: bytes | bytearray | memoryview) -> None: method wait_send_all_might_not_block (line 126) | async def wait_send_all_might_not_block(self) -> None: method send_eof (line 133) | async def send_eof(self) -> None: method receive_some (line 143) | async def receive_some(self, max_bytes: int | None = None) -> bytes: method aclose (line 151) | async def aclose(self) -> None: method setsockopt (line 158) | def setsockopt(self, level: int, option: int, value: int | Buffer) -> ... method setsockopt (line 161) | def setsockopt(self, level: int, option: int, value: None, length: int... method setsockopt (line 164) | def setsockopt( method getsockopt (line 189) | def getsockopt(self, level: int, option: int) -> int: ... method getsockopt (line 192) | def getsockopt(self, level: int, option: int, buffersize: int) -> byte... method getsockopt (line 194) | def getsockopt(self, level: int, option: int, buffersize: int = 0) -> ... class SocketListener (line 359) | class SocketListener(Listener[SocketStream]): method __init__ (line 376) | def __init__(self, socket: SocketType) -> None: method accept (line 392) | async def accept(self) -> SocketStream: method aclose (line 420) | async def aclose(self) -> None: FILE: src/trio/_highlevel_ssl_helpers.py function open_ssl_over_tcp_stream (line 27) | async def open_ssl_over_tcp_stream( function open_ssl_over_tcp_listeners (line 80) | async def open_ssl_over_tcp_listeners( function serve_ssl_over_tcp (line 108) | async def serve_ssl_over_tcp( FILE: src/trio/_path.py function _wraps_async (line 43) | def _wraps_async( # type: ignore[explicit-any] function _wrap_method (line 72) | def _wrap_method( function _wrap_method_path (line 82) | def _wrap_method_path( function _wrap_method_path_iterable (line 92) | def _wrap_method_path_iterable( class Path (line 119) | class Path(pathlib.PurePath): method __new__ (line 130) | def __new__(cls, *args: str | os.PathLike[str]) -> Self: method cwd (line 137) | def cwd(cls) -> Self: method home (line 142) | def home(cls) -> Self: method open (line 146) | async def open( method open (line 156) | async def open( method open (line 166) | async def open( method open (line 176) | async def open( method open (line 186) | async def open( method open (line 196) | async def open( method open (line 206) | async def open( # type: ignore[explicit-any] # Any usage matches bui... method open (line 216) | def open(self, *args: Any, **kwargs: Any) -> AsyncIOWrapper[IO[Any]]: ... method __repr__ (line 219) | def __repr__(self) -> str: method as_uri (line 266) | def as_uri(self) -> str: class PosixPath (line 275) | class PosixPath(Path, pathlib.PurePosixPath): class WindowsPath (line 284) | class WindowsPath(Path, pathlib.PureWindowsPath): FILE: src/trio/_repl.py class SuppressDecorator (line 22) | class SuppressDecorator(contextlib.ContextDecorator, contextlib.suppress): function terminal_newline (line 28) | def terminal_newline() -> None: # TODO: test this line class TrioInteractiveConsole (line 40) | class TrioInteractiveConsole(InteractiveConsole): method __init__ (line 41) | def __init__(self, repl_locals: dict[str, object] | None = None) -> None: method runcode (line 47) | def runcode(self, code: CodeType) -> None: method raw_input (line 80) | def raw_input(self, prompt: str = "") -> str: method raw_input (line 90) | def raw_input(self, prompt: str = "") -> str: method write (line 116) | def write(self, output: str) -> None: function run_repl (line 125) | async def run_repl(console: TrioInteractiveConsole) -> None: function main (line 143) | def main(original_locals: dict[str, object]) -> None: FILE: src/trio/_signals.py function _signal_handler (line 55) | def _signal_handler( class SignalReceiver (line 69) | class SignalReceiver: method __init__ (line 70) | def __init__(self) -> None: method _add (line 79) | def _add(self, signum: int) -> None: method _redeliver_remaining (line 86) | def _redeliver_remaining(self) -> None: method __aiter__ (line 104) | def __aiter__(self) -> Self: method __anext__ (line 107) | async def __anext__(self) -> int: function get_pending_signal_count (line 122) | def get_pending_signal_count(rec: AsyncIterator[int]) -> int: function open_signal_receiver (line 130) | def open_signal_receiver( FILE: src/trio/_socket.py class _try_sync (line 61) | class _try_sync: method __init__ (line 62) | def __init__( method _is_blocking_io_error (line 68) | def _is_blocking_io_error(self, exc: BaseException) -> bool: method __aenter__ (line 74) | async def __aenter__(self) -> None: method __aexit__ (line 77) | async def __aexit__( function set_custom_hostname_resolver (line 101) | def set_custom_hostname_resolver( function set_custom_socket_factory (line 135) | def set_custom_socket_factory( function getaddrinfo (line 175) | async def getaddrinfo( function getnameinfo (line 258) | async def getnameinfo( function getprotobyname (line 283) | async def getprotobyname(name: str) -> int: function from_stdlib_socket (line 304) | def from_stdlib_socket(sock: _stdlib_socket.socket) -> SocketType: function fromfd (line 313) | def fromfd( function fromshare (line 329) | def fromshare(info: bytes) -> SocketType: function socketpair (line 345) | def socketpair( function socket (line 359) | def socket( function _sniff_sockopts_for_fileno (line 386) | def _sniff_sockopts_for_fileno( function _make_simple_sock_method_wrapper (line 433) | def _make_simple_sock_method_wrapper( function _resolve_address_nocp (line 472) | async def _resolve_address_nocp( class SocketType (line 546) | class SocketType: method __init__ (line 547) | def __init__(self) -> None: method detach (line 557) | def detach(self) -> int: method fileno (line 560) | def fileno(self) -> int: method getpeername (line 563) | def getpeername(self) -> AddressFormat: method getsockname (line 566) | def getsockname(self) -> AddressFormat: method getsockopt (line 570) | def getsockopt(self, level: int, optname: int) -> int: ... method getsockopt (line 573) | def getsockopt(self, level: int, optname: int, buflen: int) -> bytes: ... method getsockopt (line 575) | def getsockopt( method setsockopt (line 584) | def setsockopt(self, level: int, optname: int, value: int | Buffer) ->... method setsockopt (line 587) | def setsockopt( method setsockopt (line 595) | def setsockopt( method listen (line 604) | def listen(self, backlog: int = min(_stdlib_socket.SOMAXCONN, 128)) ->... method get_inheritable (line 607) | def get_inheritable(self) -> bool: method set_inheritable (line 610) | def set_inheritable(self, inheritable: bool) -> None: method share (line 617) | def share(self, process_id: int) -> bytes: method __enter__ (line 620) | def __enter__(self) -> Self: method __exit__ (line 623) | def __exit__( method family (line 632) | def family(self) -> AddressFamily: method type (line 636) | def type(self) -> SocketKind: method proto (line 640) | def proto(self) -> int: method did_shutdown_SHUT_WR (line 644) | def did_shutdown_SHUT_WR(self) -> bool: method __repr__ (line 648) | def __repr__(self) -> str: method dup (line 651) | def dup(self) -> SocketType: method close (line 654) | def close(self) -> None: method bind (line 657) | async def bind(self, address: AddressFormat) -> None: method shutdown (line 660) | def shutdown(self, flag: int) -> None: method is_readable (line 663) | def is_readable(self) -> bool: method wait_writable (line 667) | async def wait_writable(self) -> None: method accept (line 671) | async def accept(self) -> tuple[SocketType, AddressFormat]: method connect (line 674) | async def connect(self, address: AddressFormat) -> None: method recv (line 677) | def recv(self, buflen: int, flags: int = 0, /) -> Awaitable[bytes]: method recv_into (line 680) | def recv_into( method recvfrom (line 689) | def recvfrom( method recvfrom_into (line 698) | def recvfrom_into( method recvmsg (line 710) | def recvmsg( method recvmsg_into (line 723) | def recvmsg_into( method send (line 732) | def send(self, bytes: Buffer, flags: int = 0, /) -> Awaitable[int]: method sendto (line 736) | async def sendto( method sendto (line 744) | async def sendto( method sendto (line 752) | async def sendto(self, *args: object) -> int: method sendmsg (line 760) | async def sendmsg( class _SocketType (line 786) | class _SocketType(SocketType): method __init__ (line 787) | def __init__(self, sock: _stdlib_socket.socket) -> None: method detach (line 803) | def detach(self) -> int: method fileno (line 806) | def fileno(self) -> int: method getpeername (line 809) | def getpeername(self) -> AddressFormat: method getsockname (line 812) | def getsockname(self) -> AddressFormat: method getsockopt (line 816) | def getsockopt(self, level: int, optname: int) -> int: ... method getsockopt (line 819) | def getsockopt(self, level: int, optname: int, buflen: int) -> bytes: ... method getsockopt (line 821) | def getsockopt( method setsockopt (line 832) | def setsockopt(self, level: int, optname: int, value: int | Buffer) ->... method setsockopt (line 835) | def setsockopt( method setsockopt (line 843) | def setsockopt( method listen (line 865) | def listen(self, backlog: int = min(_stdlib_socket.SOMAXCONN, 128)) ->... method get_inheritable (line 868) | def get_inheritable(self) -> bool: method set_inheritable (line 871) | def set_inheritable(self, inheritable: bool) -> None: method share (line 878) | def share(self, process_id: int) -> bytes: method __enter__ (line 881) | def __enter__(self) -> Self: method __exit__ (line 884) | def __exit__( method family (line 893) | def family(self) -> AddressFamily: method type (line 897) | def type(self) -> SocketKind: method proto (line 901) | def proto(self) -> int: method did_shutdown_SHUT_WR (line 905) | def did_shutdown_SHUT_WR(self) -> bool: method __repr__ (line 908) | def __repr__(self) -> str: method dup (line 911) | def dup(self) -> SocketType: method close (line 915) | def close(self) -> None: method bind (line 920) | async def bind(self, address: AddressFormat) -> None: method shutdown (line 938) | def shutdown(self, flag: int) -> None: method is_readable (line 945) | def is_readable(self) -> bool: method wait_writable (line 954) | async def wait_writable(self) -> None: method _resolve_address_nocp (line 957) | async def _resolve_address_nocp( method _nonblocking_helper (line 985) | async def _nonblocking_helper( method accept (line 1032) | async def accept(self) -> tuple[SocketType, AddressFormat]: method connect (line 1041) | async def connect(self, address: AddressFormat) -> None: method recv (line 1121) | def recv(self, buflen: int, flags: int = 0, /) -> Awaitable[bytes]: ... method recv_into (line 1134) | def recv_into( method recvfrom (line 1153) | def recvfrom( method recvfrom_into (line 1171) | def recvfrom_into( method recvmsg (line 1193) | def recvmsg( method recvmsg_into (line 1216) | def recvmsg_into( method send (line 1236) | def send(self, bytes: Buffer, flags: int = 0, /) -> Awaitable[int]: ... method sendto (line 1248) | async def sendto( method sendto (line 1256) | async def sendto( method sendto (line 1265) | async def sendto(self, *args: object) -> int: method sendmsg (line 1288) | async def sendmsg( FILE: src/trio/_ssl.py function _is_eof (line 207) | def _is_eof(exc: BaseException | None) -> bool: class NeedHandshakeError (line 217) | class NeedHandshakeError(Exception): class _Once (line 225) | class _Once: method __init__ (line 228) | def __init__( method ensure (line 238) | async def ensure(self, *, checkpoint: bool) -> None: method done (line 249) | def done(self) -> bool: class SSLStream (line 260) | class SSLStream(Stream, Generic[T_Stream]): method __init__ (line 356) | def __init__( method __getattr__ (line 426) | def __getattr__( # type: ignore[explicit-any] method __setattr__ (line 438) | def __setattr__(self, name: str, value: object) -> None: method __dir__ (line 444) | def __dir__(self) -> list[str]: method _check_status (line 447) | def _check_status(self) -> None: method _retry (line 461) | async def _retry( method _do_handshake (line 640) | async def _do_handshake(self) -> None: method do_handshake (line 647) | async def do_handshake(self) -> None: method receive_some (line 682) | async def receive_some(self, max_bytes: int | None = None) -> bytes | ... method send_all (line 737) | async def send_all(self, data: bytes | bytearray | memoryview) -> None: method unwrap (line 758) | async def unwrap(self) -> tuple[Stream, bytes | bytearray]: method aclose (line 784) | async def aclose(self) -> None: method wait_send_all_might_not_block (line 869) | async def wait_send_all_might_not_block(self) -> None: class SSLListener (line 915) | class SSLListener(Listener[SSLStream[T_Stream]]): method __init__ (line 937) | def __init__( method accept (line 948) | async def accept(self) -> SSLStream[T_Stream]: method aclose (line 962) | async def aclose(self) -> None: FILE: src/trio/_subprocess.py function pidfd_open (line 51) | def pidfd_open(fd: int, flags: int) -> int: ... function pidfd_open (line 87) | def pidfd_open(fd: int, flags: int) -> int: class HasFileno (line 98) | class HasFileno(Protocol): method fileno (line 101) | def fileno(self) -> int: ... class Process (line 105) | class Process(metaclass=NoPublicConstructor): method __init__ (line 158) | def __init__( method __repr__ (line 195) | def __repr__(self) -> str: method returncode (line 207) | def returncode(self) -> int | None: method _close_pidfd (line 228) | def _close_pidfd(self) -> None: method wait (line 234) | async def wait(self) -> int: method poll (line 260) | def poll(self) -> int | None: method send_signal (line 272) | def send_signal(self, sig: signal.Signals | int) -> None: method terminate (line 282) | def terminate(self) -> None: method kill (line 293) | def kill(self) -> None: function _open_process (line 306) | async def _open_process( function _windows_deliver_cancel (line 434) | async def _windows_deliver_cancel(p: Process) -> None: # noqa: RUF029 function _posix_deliver_cancel (line 444) | async def _posix_deliver_cancel(p: Process) -> None: function _run_process (line 466) | async def _run_process( class GeneralProcessArgs (line 803) | class GeneralProcessArgs(TypedDict, total=False): class WindowsProcessArgs (line 817) | class WindowsProcessArgs(GeneralProcessArgs, total=False): function open_process (line 824) | async def open_process( function run_process (line 882) | async def run_process( class UnixProcessArgs3_10 (line 1091) | class UnixProcessArgs3_10(GeneralProcessArgs, total=False): class UnixProcessArgs3_11 (line 1108) | class UnixProcessArgs3_11(UnixProcessArgs3_10, total=False): class UnixRunProcessMixin (line 1113) | class UnixRunProcessMixin(TypedDict, total=False): class UnixRunProcessArgs (line 1127) | class UnixRunProcessArgs(UnixProcessArgs3_11, UnixRunProcessMixin): class UnixRunProcessArgs (line 1133) | class UnixRunProcessArgs(UnixProcessArgs3_10, UnixRunProcessMixin): function open_process (line 1137) | async def open_process( function open_process (line 1146) | async def open_process( function run_process (line 1155) | async def run_process( function run_process (line 1164) | async def run_process( FILE: src/trio/_subprocess_platform/__init__.py class ClosableSendStream (line 19) | class ClosableSendStream(SendStream): method close (line 20) | def close(self) -> None: ... class ClosableReceiveStream (line 22) | class ClosableReceiveStream(ReceiveStream): method close (line 23) | def close(self) -> None: ... function wait_child_exiting (line 28) | async def wait_child_exiting(process: _subprocess.Process) -> None: function create_pipe_to_child_stdin (line 43) | def create_pipe_to_child_stdin() -> tuple[ClosableSendStream, int]: function create_pipe_from_child_output (line 56) | def create_pipe_from_child_output() -> tuple[ClosableReceiveStream, int]: function create_pipe_to_child_stdin (line 88) | def create_pipe_to_child_stdin() -> tuple[trio.lowlevel.FdStream, int]: function create_pipe_from_child_output (line 92) | def create_pipe_from_child_output() -> tuple[trio.lowlevel.FdStream, int]: function create_pipe_to_child_stdin (line 109) | def create_pipe_to_child_stdin() -> tuple[PipeSendStream, int]: function create_pipe_from_child_output (line 114) | def create_pipe_from_child_output() -> tuple[PipeReceiveStream, int]: FILE: src/trio/_subprocess_platform/kqueue.py function wait_child_exiting (line 12) | async def wait_child_exiting(process: _subprocess.Process) -> None: FILE: src/trio/_subprocess_platform/waitid.py function sync_wait_reapable (line 16) | def sync_wait_reapable(pid: int) -> None: function sync_wait_reapable (line 47) | def sync_wait_reapable(pid: int) -> None: function _waitid_system_task (line 71) | async def _waitid_system_task(pid: int, event: Event) -> None: function wait_child_exiting (line 98) | async def wait_child_exiting(process: "_subprocess.Process") -> None: FILE: src/trio/_subprocess_platform/windows.py function wait_child_exiting (line 9) | async def wait_child_exiting(process: "_subprocess.Process") -> None: FILE: src/trio/_sync.py function deprecated (line 33) | def deprecated( class EventStatistics (line 47) | class EventStatistics: class Event (line 62) | class Event: method is_set (line 91) | def is_set(self) -> bool: method set (line 96) | def set(self) -> None: method wait (line 104) | async def wait(self) -> None: method statistics (line 122) | def statistics(self) -> EventStatistics: method __bool__ (line 137) | def __bool__(self) -> Literal[True]: class _HasAcquireRelease (line 148) | class _HasAcquireRelease(Protocol): method acquire (line 151) | async def acquire(self) -> object: ... method release (line 153) | def release(self) -> object: ... class AsyncContextManagerMixin (line 156) | class AsyncContextManagerMixin: method __aenter__ (line 158) | async def __aenter__(self: _HasAcquireRelease) -> None: method __aexit__ (line 162) | async def __aexit__( class CapacityLimiterStatistics (line 172) | class CapacityLimiterStatistics: class CapacityLimiter (line 200) | class CapacityLimiter(AsyncContextManagerMixin): method __init__ (line 255) | def __init__(self, total_tokens: int | float) -> None: # noqa: PYI041 method __repr__ (line 264) | def __repr__(self) -> str: method total_tokens (line 268) | def total_tokens(self) -> int | float: method total_tokens (line 283) | def total_tokens(self, new_total_tokens: int | float) -> None: # noqa... method _wake_waiters (line 291) | def _wake_waiters(self) -> None: method borrowed_tokens (line 297) | def borrowed_tokens(self) -> int: method available_tokens (line 302) | def available_tokens(self) -> int | float: method acquire_nowait (line 307) | def acquire_nowait(self) -> None: method acquire_on_behalf_of_nowait (line 319) | def acquire_on_behalf_of_nowait(self, borrower: Task | object) -> None: method acquire (line 347) | async def acquire(self) -> None: method acquire_on_behalf_of (line 358) | async def acquire_on_behalf_of(self, borrower: Task | object) -> None: method release (line 387) | def release(self) -> None: method release_on_behalf_of (line 398) | def release_on_behalf_of(self, borrower: Task | object) -> None: method statistics (line 413) | def statistics(self) -> CapacityLimiterStatistics: class Semaphore (line 441) | class Semaphore(AsyncContextManagerMixin): method __init__ (line 468) | def __init__(self, initial_value: int, *, max_value: int | None = None... method __repr__ (line 486) | def __repr__(self) -> str: method value (line 494) | def value(self) -> int: method max_value (line 499) | def max_value(self) -> int | None: method acquire_nowait (line 504) | def acquire_nowait(self) -> None: method acquire (line 518) | async def acquire(self) -> None: method release (line 532) | def release(self) -> None: method statistics (line 549) | def statistics(self) -> ParkingLotStatistics: class LockStatistics (line 562) | class LockStatistics: class _LockImpl (line 581) | class _LockImpl(AsyncContextManagerMixin): method __repr__ (line 585) | def __repr__(self) -> str: method locked (line 594) | def locked(self) -> bool: method acquire_nowait (line 604) | def acquire_nowait(self) -> None: method acquire (line 623) | async def acquire(self) -> None: method release (line 646) | def release(self) -> None: method statistics (line 663) | def statistics(self) -> LockStatistics: class Lock (line 683) | class Lock(_LockImpl): class StrictFIFOLock (line 698) | class StrictFIFOLock(_LockImpl): class ConditionStatistics (line 762) | class ConditionStatistics: class Condition (line 779) | class Condition(AsyncContextManagerMixin): method __init__ (line 794) | def __init__(self, lock: Lock | None = None) -> None: method locked (line 802) | def locked(self) -> bool: method acquire_nowait (line 811) | def acquire_nowait(self) -> None: method acquire (line 820) | async def acquire(self) -> None: method release (line 828) | def release(self) -> None: method wait (line 833) | async def wait(self) -> None: method notify (line 869) | def notify(self, n: int = 1) -> None: method notify_all (line 883) | def notify_all(self) -> None: method statistics (line 894) | def statistics(self) -> ConditionStatistics: FILE: src/trio/_tests/check_type_completeness.py function run_pyright (line 30) | def run_pyright(platform: str) -> subprocess.CompletedProcess[bytes]: function has_docstring_at_runtime (line 45) | def has_docstring_at_runtime(name: str) -> bool: function check_type (line 114) | def check_type( function main (line 172) | def main(args: argparse.Namespace) -> int: FILE: src/trio/_tests/pytest_plugin.py function pytest_addoption (line 14) | def pytest_addoption(parser: pytest.Parser) -> None: function pytest_configure (line 23) | def pytest_configure(config: pytest.Config) -> None: function mock_clock (line 31) | def mock_clock() -> MockClock: function autojump_clock (line 36) | def autojump_clock() -> MockClock: function pytest_pyfunc_call (line 45) | def pytest_pyfunc_call(pyfuncitem: pytest.Function) -> None: function skip_if_optional_else_raise (line 50) | def skip_if_optional_else_raise(error: ImportError) -> NoReturn: FILE: src/trio/_tests/test_abc.py function test_instrument_implements_hook_methods (line 10) | def test_instrument_implements_hook_methods() -> None: function test_AsyncResource_defaults (line 32) | async def test_AsyncResource_defaults() -> None: function test_abc_generics (line 47) | def test_abc_generics() -> None: FILE: src/trio/_tests/test_channel.py function test_channel (line 20) | async def test_channel() -> None: function test_553 (line 63) | async def test_553(autojump_clock: trio.abc.Clock) -> None: function test_channel_multiple_producers (line 71) | async def test_channel_multiple_producers() -> None: function test_channel_multiple_consumers (line 92) | async def test_channel_multiple_consumers() -> None: function test_close_basics (line 115) | async def test_close_basics() -> None: function test_close_sync (line 173) | async def test_close_sync() -> None: function test_receive_channel_clone_and_close (line 231) | async def test_receive_channel_clone_and_close() -> None: function test_close_multiple_send_handles (line 258) | async def test_close_multiple_send_handles() -> None: function test_close_multiple_receive_handles (line 279) | async def test_close_multiple_receive_handles() -> None: function test_inf_capacity (line 300) | async def test_inf_capacity() -> None: function test_statistics (line 312) | async def test_statistics() -> None: function test_channel_fairness (line 362) | async def test_channel_fairness() -> None: function test_unbuffered (line 404) | async def test_unbuffered() -> None: function test_as_safe_channel_exhaust (line 423) | async def test_as_safe_channel_exhaust() -> None: function test_as_safe_channel_broken_resource (line 433) | async def test_as_safe_channel_broken_resource() -> None: function test_as_safe_channel_cancelled (line 452) | async def test_as_safe_channel_cancelled() -> None: function test_as_safe_channel_no_race (line 466) | async def test_as_safe_channel_no_race() -> None: function test_as_safe_channel_buffer_size_too_small (line 480) | async def test_as_safe_channel_buffer_size_too_small( function test_as_safe_channel_no_interleave (line 497) | async def test_as_safe_channel_no_interleave() -> None: function test_as_safe_channel_genexit_finally (line 508) | async def test_as_safe_channel_genexit_finally() -> None: function test_as_safe_channel_nested_loop (line 539) | async def test_as_safe_channel_nested_loop() -> None: function test_as_safe_channel_doesnt_leak_cancellation (line 556) | async def test_as_safe_channel_doesnt_leak_cancellation() -> None: function test_as_safe_channel_dont_unwrap_user_exceptiongroup (line 571) | async def test_as_safe_channel_dont_unwrap_user_exceptiongroup() -> None: function test_as_safe_channel_multiple_receiver (line 582) | async def test_as_safe_channel_multiple_receiver() -> None: function test_as_safe_channel_multi_cancel (line 606) | async def test_as_safe_channel_multi_cancel() -> None: function test_as_safe_channel_genexit_exception_group (line 634) | async def test_as_safe_channel_genexit_exception_group() -> None: function test_as_safe_channel_does_not_suppress_nested_genexit (line 649) | async def test_as_safe_channel_does_not_suppress_nested_genexit() -> None: function test_as_safe_channel_genexit_filter (line 660) | async def test_as_safe_channel_genexit_filter() -> None: function test_as_safe_channel_swallowing_extra_exceptions (line 679) | async def test_as_safe_channel_swallowing_extra_exceptions() -> None: function test_as_safe_channel_close_between_iteration (line 704) | async def test_as_safe_channel_close_between_iteration() -> None: function test_as_safe_channel_close_before_iteration (line 722) | async def test_as_safe_channel_close_before_iteration() -> None: function test_as_safe_channel_close_during_iteration (line 734) | async def test_as_safe_channel_close_during_iteration() -> None: FILE: src/trio/_tests/test_contextvars.py function test_contextvars_default (line 12) | async def test_contextvars_default() -> None: function test_contextvars_set (line 25) | async def test_contextvars_set() -> None: function test_contextvars_copy (line 41) | async def test_contextvars_copy() -> None: FILE: src/trio/_tests/test_deprecate.py function recwarn_always (line 19) | def recwarn_always(recwarn: pytest.WarningsRecorder) -> pytest.WarningsR... function _here (line 27) | def _here() -> tuple[str, int]: function test_warn_deprecated (line 35) | def test_warn_deprecated(recwarn_always: pytest.WarningsRecorder) -> None: function test_warn_deprecated_no_instead_or_issue (line 52) | def test_warn_deprecated_no_instead_or_issue( function test_warn_deprecated_stacklevel (line 65) | def test_warn_deprecated_stacklevel(recwarn_always: pytest.WarningsRecor... function old (line 79) | def old() -> None: # pragma: no cover function new (line 83) | def new() -> None: # pragma: no cover function test_warn_deprecated_formatting (line 87) | def test_warn_deprecated_formatting(recwarn_always: pytest.WarningsRecor... function deprecated_old (line 96) | def deprecated_old() -> int: function test_deprecated_decorator (line 100) | def test_deprecated_decorator(recwarn_always: pytest.WarningsRecorder) -... class Foo (line 110) | class Foo: method method (line 112) | def method(self) -> int: function test_deprecated_decorator_method (line 116) | def test_deprecated_decorator_method(recwarn_always: pytest.WarningsReco... function deprecated_with_thing (line 125) | def deprecated_with_thing() -> int: function test_deprecated_decorator_with_explicit_thing (line 129) | def test_deprecated_decorator_with_explicit_thing( function new_hotness (line 138) | def new_hotness() -> str: function test_deprecated_alias (line 145) | def test_deprecated_alias(recwarn_always: pytest.WarningsRecorder) -> None: class Alias (line 160) | class Alias: method new_hotness_method (line 161) | def new_hotness_method(self) -> str: function test_deprecated_alias_method (line 172) | def test_deprecated_alias_method(recwarn_always: pytest.WarningsRecorder... function docstring_test1 (line 183) | def docstring_test1() -> None: # pragma: no cover function docstring_test2 (line 188) | def docstring_test2() -> None: # pragma: no cover function docstring_test3 (line 193) | def docstring_test3() -> None: # pragma: no cover function docstring_test4 (line 198) | def docstring_test4() -> None: # pragma: no cover function test_deprecated_docstring_munging (line 202) | def test_deprecated_docstring_munging() -> None: function test_module_with_deprecations (line 232) | def test_module_with_deprecations(recwarn_always: pytest.WarningsRecorde... function test_warning_class (line 259) | def test_warning_class() -> None: FILE: src/trio/_tests/test_deprecate_strict_exception_groups_false.py function test_deprecation_warning_open_nursery (line 8) | async def test_deprecation_warning_open_nursery() -> None: function test_deprecation_warning_run (line 22) | def test_deprecation_warning_run() -> None: function test_deprecation_warning_start_guest_run (line 48) | def test_deprecation_warning_start_guest_run() -> None: FILE: src/trio/_tests/test_dtls.py function server_ctx (line 35) | def server_ctx() -> SSL.Context: function client_ctx_fn (line 41) | def client_ctx_fn() -> SSL.Context: function client_ctx (line 48) | def client_ctx() -> SSL.Context: function endpoint (line 59) | def endpoint(**kwargs: int | bool) -> DTLSEndpoint: function dtls_echo_server (line 67) | async def dtls_echo_server( function test_smoke (line 108) | async def test_smoke( function test_handshake_over_terrible_network (line 141) | async def test_handshake_over_terrible_network( function test_implicit_handshake (line 230) | async def test_implicit_handshake( function test_full_duplex (line 242) | async def test_full_duplex(server_ctx: SSL.Context, client_ctx: SSL.Cont... function test_channel_closing (line 267) | async def test_channel_closing( function test_serve_exits_cleanly_on_close (line 287) | async def test_serve_exits_cleanly_on_close(server_ctx: SSL.Context) -> ... function test_client_multiplex (line 298) | async def test_client_multiplex(server_ctx: SSL.Context) -> None: function test_dtls_over_dgram_only (line 329) | async def test_dtls_over_dgram_only() -> None: function test_double_serve (line 335) | async def test_double_serve(server_ctx: SSL.Context) -> None: function test_connect_to_non_server (line 353) | async def test_connect_to_non_server( function test_incoming_buffer_overflow (line 368) | async def test_incoming_buffer_overflow( function test_server_socket_doesnt_crash_on_garbage (line 391) | async def test_server_socket_doesnt_crash_on_garbage( function test_invalid_cookie_rejected (line 505) | async def test_invalid_cookie_rejected( function test_client_cancels_handshake_and_starts_new_one (line 549) | async def test_client_cancels_handshake_and_starts_new_one( function test_swap_client_server (line 594) | async def test_swap_client_server(server_ctx: SSL.Context) -> None: function test_openssl_retransmit_doesnt_break_stuff (line 626) | async def test_openssl_retransmit_doesnt_break_stuff( function test_initial_retransmit_timeout_configuration (line 680) | async def test_initial_retransmit_timeout_configuration( function test_explicit_tiny_mtu_is_respected (line 708) | async def test_explicit_tiny_mtu_is_respected( function test_handshake_handles_minimum_network_mtu (line 736) | async def test_handshake_handles_minimum_network_mtu( function test_system_task_cleaned_up_on_gc (line 773) | async def test_system_task_cleaned_up_on_gc(client_ctx: SSL.Context) -> ... function test_gc_before_system_task_starts (line 809) | async def test_gc_before_system_task_starts() -> None: function test_gc_as_packet_received (line 820) | async def test_gc_as_packet_received() -> None: function test_gc_after_trio_exits (line 841) | def test_gc_after_trio_exits() -> None: function test_already_closed_socket_doesnt_crash (line 857) | async def test_already_closed_socket_doesnt_crash() -> None: function test_socket_closed_while_processing_clienthello (line 866) | async def test_socket_closed_while_processing_clienthello( function test_association_replaced_while_handshake_running (line 888) | async def test_association_replaced_while_handshake_running( function test_association_replaced_before_handshake_starts (line 916) | async def test_association_replaced_before_handshake_starts( function test_send_to_closed_local_port (line 937) | async def test_send_to_closed_local_port(server_ctx: SSL.Context) -> None: FILE: src/trio/_tests/test_exports.py function _ensure_mypy_cache_updated (line 39) | def _ensure_mypy_cache_updated() -> None: function test_core_is_properly_reexported (line 64) | def test_core_is_properly_reexported() -> None: function class_is_final (line 82) | def class_is_final(cls: type) -> bool: function iter_modules (line 93) | def iter_modules( function test_static_tool_sees_all_symbols (line 137) | def test_static_tool_sees_all_symbols(tool: str, modname: str, tmp_path:... function test_static_tool_sees_class_members (line 261) | def test_static_tool_sees_class_members( function test_nopublic_is_final (line 545) | def test_nopublic_is_final() -> None: function test_classes_are_final (line 555) | def test_classes_are_final() -> None: function test_pyright_recognizes_init_attributes (line 600) | def test_pyright_recognizes_init_attributes() -> None: FILE: src/trio/_tests/test_fakenet.py function fn (line 20) | def fn() -> FakeNet: function test_basic_udp (line 26) | async def test_basic_udp() -> None: function test_msg_trunc (line 61) | async def test_msg_trunc() -> None: function test_recv_methods (line 70) | async def test_recv_methods() -> None: function test_nonwindows_functionality (line 143) | async def test_nonwindows_functionality() -> None: function test_windows_functionality (line 200) | async def test_windows_functionality() -> None: function test_basic_tcp (line 226) | async def test_basic_tcp() -> None: function test_not_implemented_functions (line 232) | async def test_not_implemented_functions() -> None: function test_getpeername (line 272) | async def test_getpeername() -> None: function test_init (line 288) | async def test_init() -> None: FILE: src/trio/_tests/test_file_io.py function path (line 22) | def path(tmp_path: pathlib.Path) -> str: function wrapped (line 27) | def wrapped() -> mock.Mock: function async_file (line 32) | def async_file(wrapped: mock.Mock) -> AsyncIOWrapper[mock.Mock]: function test_wrap_invalid (line 36) | def test_wrap_invalid() -> None: function test_wrap_non_iobase (line 41) | def test_wrap_non_iobase() -> None: function test_wrapped_property (line 61) | def test_wrapped_property( function test_dir_matches_wrapped (line 68) | def test_dir_matches_wrapped( function test_unsupported_not_forwarded (line 82) | def test_unsupported_not_forwarded() -> None: function test_type_stubs_match_lists (line 96) | def test_type_stubs_match_lists() -> None: function test_sync_attrs_forwarded (line 136) | def test_sync_attrs_forwarded( function test_sync_attrs_match_wrapper (line 147) | def test_sync_attrs_match_wrapper( function test_async_methods_generated_once (line 162) | def test_async_methods_generated_once(async_file: AsyncIOWrapper[mock.Mo... function test_async_methods_signature (line 171) | def test_async_methods_signature(async_file: AsyncIOWrapper[mock.Mock]) ... function test_async_methods_wrap (line 180) | async def test_async_methods_wrap( function test_async_methods_match_wrapper (line 202) | def test_async_methods_match_wrapper( function test_open (line 217) | async def test_open(path: pathlib.Path) -> None: function test_open_context_manager (line 225) | async def test_open_context_manager(path: pathlib.Path) -> None: function test_async_iter (line 233) | async def test_async_iter() -> None: function test_aclose_cancelled (line 243) | async def test_aclose_cancelled(path: pathlib.Path) -> None: function test_detach_rewraps_asynciobase (line 257) | async def test_detach_rewraps_asynciobase(tmp_path: pathlib.Path) -> None: FILE: src/trio/_tests/test_highlevel_generic.py class RecordSendStream (line 13) | class RecordSendStream(SendStream): method send_all (line 16) | async def send_all(self, data: object) -> None: method wait_send_all_might_not_block (line 19) | async def wait_send_all_might_not_block(self) -> None: method aclose (line 22) | async def aclose(self) -> None: class RecordReceiveStream (line 27) | class RecordReceiveStream(ReceiveStream): method receive_some (line 30) | async def receive_some(self, max_bytes: int | None = None) -> bytes: method aclose (line 34) | async def aclose(self) -> None: function test_StapledStream (line 38) | async def test_StapledStream() -> None: function test_StapledStream_with_erroring_close (line 78) | async def test_StapledStream_with_erroring_close() -> None: FILE: src/trio/_tests/test_highlevel_open_tcp_listeners.py function test_open_tcp_listeners_basic (line 36) | async def test_open_tcp_listeners_basic() -> None: function test_open_tcp_listeners_specific_port_specific_host (line 64) | async def test_open_tcp_listeners_specific_port_specific_host() -> None: function test_open_tcp_listeners_ipv6_v6only (line 78) | async def test_open_tcp_listeners_ipv6_v6only() -> None: function test_open_tcp_listeners_rebind (line 93) | async def test_open_tcp_listeners_rebind() -> None: class FakeOSError (line 137) | class FakeOSError(OSError): class FakeSocket (line 142) | class FakeSocket(tsocket.SocketType): method type (line 152) | def type(self) -> SocketKind: method family (line 156) | def family(self) -> AddressFamily: method proto (line 160) | def proto(self) -> int: # pragma: no cover method getsockopt (line 164) | def getsockopt(self, /, level: int, optname: int) -> int: ... method getsockopt (line 167) | def getsockopt(self, /, level: int, optname: int, buflen: int) -> byte... method getsockopt (line 169) | def getsockopt( method setsockopt (line 181) | def setsockopt(self, /, level: int, optname: int, value: int | Buffer)... method setsockopt (line 184) | def setsockopt( method setsockopt (line 193) | def setsockopt( method bind (line 203) | async def bind(self, address: AddressFormat) -> None: method listen (line 206) | def listen(self, /, backlog: int = min(stdlib_socket.SOMAXCONN, 128)) ... method close (line 213) | def close(self) -> None: class FakeSocketFactory (line 218) | class FakeSocketFactory(SocketFactory): method socket (line 223) | def socket( class FakeHostnameResolver (line 244) | class FakeHostnameResolver(HostnameResolver): method getaddrinfo (line 247) | async def getaddrinfo( method getnameinfo (line 270) | async def getnameinfo( function test_open_tcp_listeners_multiple_host_cleanup_on_error (line 278) | async def test_open_tcp_listeners_multiple_host_cleanup_on_error() -> None: function test_open_tcp_listeners_port_checking (line 302) | async def test_open_tcp_listeners_port_checking() -> None: function test_serve_tcp (line 312) | async def test_serve_tcp() -> None: function test_open_tcp_listeners_some_address_families_unavailable (line 335) | async def test_open_tcp_listeners_some_address_families_unavailable( function test_open_tcp_listeners_socket_fails_not_afnosupport (line 367) | async def test_open_tcp_listeners_socket_fails_not_afnosupport() -> None: function test_open_tcp_listeners_backlog (line 395) | async def test_open_tcp_listeners_backlog() -> None: function test_open_tcp_listeners_backlog_float_error (line 411) | async def test_open_tcp_listeners_backlog_float_error() -> None: FILE: src/trio/_tests/test_highlevel_open_tcp_stream.py function test_close_all (line 29) | def test_close_all() -> None: function test_reorder_for_rfc_6555_section_5_4 (line 60) | def test_reorder_for_rfc_6555_section_5_4() -> None: function test_format_host_port (line 101) | def test_format_host_port() -> None: function test_open_tcp_stream_real_socket_smoketest (line 111) | async def test_open_tcp_stream_real_socket_smoketest() -> None: function test_open_tcp_stream_input_validation (line 126) | async def test_open_tcp_stream_input_validation() -> None: function can_bind_127_0_0_2 (line 133) | def can_bind_127_0_0_2() -> bool: function test_local_address_real (line 143) | async def test_local_address_real() -> None: class FakeSocket (line 197) | class FakeSocket(trio.socket.SocketType): method type (line 210) | def type(self) -> SocketKind: method family (line 214) | def family(self) -> AddressFamily: # pragma: no cover method proto (line 218) | def proto(self) -> int: # pragma: no cover method connect (line 221) | async def connect(self, sockaddr: tuple[str | int, str | int | None]) ... method close (line 235) | def close(self) -> None: method setsockopt (line 239) | def setsockopt(self, *args: object, **kwargs: object) -> None: class Scenario (line 246) | class Scenario(trio.abc.SocketFactory, trio.abc.HostnameResolver): method __init__ (line 247) | def __init__( method socket (line 270) | def socket( method _ip_to_gai_entry (line 284) | def _ip_to_gai_entry(self, ip: str) -> tuple[ method getaddrinfo (line 300) | async def getaddrinfo( method getnameinfo (line 325) | async def getnameinfo( method check (line 332) | def check(self, succeeded: SocketType | None) -> None: function run_scenario (line 344) | async def run_scenario( function test_one_host_quick_success (line 391) | async def test_one_host_quick_success(autojump_clock: MockClock) -> None: function test_one_host_slow_success (line 398) | async def test_one_host_slow_success(autojump_clock: MockClock) -> None: function test_one_host_quick_fail (line 405) | async def test_one_host_quick_fail(autojump_clock: MockClock) -> None: function test_one_host_slow_fail (line 415) | async def test_one_host_slow_fail(autojump_clock: MockClock) -> None: function test_one_host_failed_after_connect (line 425) | async def test_one_host_failed_after_connect(autojump_clock: MockClock) ... function test_basic_fallthrough (line 435) | async def test_basic_fallthrough(autojump_clock: MockClock) -> None: function test_early_success (line 455) | async def test_early_success(autojump_clock: MockClock) -> None: function test_custom_delay (line 475) | async def test_custom_delay(autojump_clock: MockClock) -> None: function test_none_default (line 495) | async def test_none_default(autojump_clock: MockClock) -> None: function test_custom_errors_expedite (line 517) | async def test_custom_errors_expedite(autojump_clock: MockClock) -> None: function test_all_fail (line 539) | async def test_all_fail(autojump_clock: MockClock) -> None: function test_multi_success (line 567) | async def test_multi_success(autojump_clock: MockClock) -> None: function test_does_reorder (line 598) | async def test_does_reorder(autojump_clock: MockClock) -> None: function test_handles_no_ipv4 (line 619) | async def test_handles_no_ipv4(autojump_clock: MockClock) -> None: function test_handles_no_ipv6 (line 642) | async def test_handles_no_ipv6(autojump_clock: MockClock) -> None: function test_no_hosts (line 665) | async def test_no_hosts(autojump_clock: MockClock) -> None: function test_cancel (line 670) | async def test_cancel(autojump_clock: MockClock) -> None: FILE: src/trio/_tests/test_highlevel_open_unix_stream.py function test_close_on_error (line 21) | def test_close_on_error() -> None: function test_open_with_bad_filename_type (line 40) | async def test_open_with_bad_filename_type(filename: float) -> None: function test_open_bad_socket (line 46) | async def test_open_bad_socket() -> None: function test_open_unix_socket (line 55) | async def test_open_unix_socket() -> None: function test_error_on_no_unix (line 81) | async def test_error_on_no_unix() -> None: FILE: src/trio/_tests/test_highlevel_serve_listeners.py class MemoryListener (line 32) | class MemoryListener(trio.abc.Listener[StapledMemoryStream]): method connect (line 41) | async def connect(self) -> StapledMemoryStream: method accept (line 47) | async def accept(self) -> StapledMemoryStream: method aclose (line 56) | async def aclose(self) -> None: function test_serve_listeners_basic (line 61) | async def test_serve_listeners_basic() -> None: function test_serve_listeners_accept_unrecognized_error (line 112) | async def test_serve_listeners_accept_unrecognized_error() -> None: function test_serve_listeners_accept_capacity_error (line 128) | async def test_serve_listeners_accept_capacity_error( function test_serve_listeners_connection_nursery (line 152) | async def test_serve_listeners_connection_nursery(autojump_clock: MockCl... FILE: src/trio/_tests/test_highlevel_socket.py function test_SocketStream_basics (line 23) | async def test_SocketStream_basics() -> None: function test_SocketStream_send_all (line 67) | async def test_SocketStream_send_all() -> None: function fill_stream (line 122) | async def fill_stream(s: SocketStream) -> None: function test_SocketStream_generic (line 136) | async def test_SocketStream_generic() -> None: function test_SocketListener (line 153) | async def test_SocketListener() -> None: function test_SocketListener_socket_closed_underfoot (line 212) | async def test_SocketListener_socket_closed_underfoot() -> None: function test_SocketListener_accept_errors (line 227) | async def test_SocketListener_accept_errors() -> None: function test_socket_stream_works_when_peer_has_already_closed (line 329) | async def test_socket_stream_works_when_peer_has_already_closed() -> None: FILE: src/trio/_tests/test_highlevel_ssl_helpers.py function echo_handler (line 31) | async def echo_handler(stream: Stream) -> None: class FakeHostnameResolver (line 46) | class FakeHostnameResolver(trio.abc.HostnameResolver): method getaddrinfo (line 49) | async def getaddrinfo( method getnameinfo (line 68) | async def getnameinfo( function test_open_ssl_over_tcp_stream_and_everything_else (line 78) | async def test_open_ssl_over_tcp_stream_and_everything_else( function test_open_ssl_over_tcp_listeners (line 152) | async def test_open_ssl_over_tcp_listeners() -> None: FILE: src/trio/_tests/test_path.py function path (line 17) | def path(tmp_path: pathlib.Path) -> trio.Path: function method_pair (line 21) | def method_pair( function test_instantiate_posix (line 31) | def test_instantiate_posix() -> None: function test_instantiate_windows (line 36) | def test_instantiate_windows() -> None: function test_open_is_async_context_manager (line 40) | async def test_open_is_async_context_manager(path: trio.Path) -> None: function test_magic (line 47) | def test_magic() -> None: function test_cmp_magic (line 64) | def test_cmp_magic(cls_a: EitherPathType, cls_b: EitherPathType) -> None: function test_div_magic (line 91) | def test_div_magic(cls_a: PathOrStrType, cls_b: PathOrStrType) -> None: function test_hash_magic (line 105) | def test_hash_magic( function test_forwarded_properties (line 114) | def test_forwarded_properties(path: trio.Path) -> None: function test_async_method_signature (line 121) | def test_async_method_signature(path: trio.Path) -> None: function test_compare_async_stat_methods (line 132) | async def test_compare_async_stat_methods(method_name: str) -> None: function test_invalid_name_not_wrapped (line 141) | def test_invalid_name_not_wrapped(path: trio.Path) -> None: function test_async_methods_rewrap (line 147) | async def test_async_methods_rewrap(method_name: str) -> None: function test_forward_methods_rewrap (line 157) | def test_forward_methods_rewrap(path: trio.Path, tmp_path: pathlib.Path)... function test_forward_properties_rewrap (line 167) | def test_forward_properties_rewrap(path: trio.Path) -> None: function test_forward_methods_without_rewrap (line 171) | def test_forward_methods_without_rewrap(path: trio.Path) -> None: function test_repr (line 175) | def test_repr() -> None: function test_path_wraps_path (line 182) | async def test_path_wraps_path( function test_path_nonpath (line 194) | def test_path_nonpath() -> None: function test_open_file_can_open_path (line 199) | async def test_open_file_can_open_path(path: trio.Path) -> None: function test_globmethods (line 204) | async def test_globmethods(path: trio.Path) -> None: function test_as_uri (line 233) | async def test_as_uri(path: trio.Path) -> None: function test_iterdir (line 239) | async def test_iterdir(path: trio.Path) -> None: function test_classmethods (line 253) | async def test_classmethods() -> None: function test_wrapping_without_docstrings (line 273) | def test_wrapping_without_docstrings( FILE: src/trio/_tests/test_repl.py class RawInput (line 16) | class RawInput(Protocol): method __call__ (line 17) | def __call__(self, prompt: str = "") -> str: ... function build_raw_input (line 20) | def build_raw_input(cmds: list[str]) -> RawInput: function test_build_raw_input (line 39) | def test_build_raw_input() -> None: function test_basic_interaction (line 47) | async def test_basic_interaction( function test_system_exits_quit_interpreter (line 84) | async def test_system_exits_quit_interpreter(monkeypatch: pytest.MonkeyP... function test_KI_interrupts (line 96) | async def test_KI_interrupts( function test_system_exits_in_exc_group (line 124) | async def test_system_exits_in_exc_group( function test_system_exits_in_nested_exc_group (line 147) | async def test_system_exits_in_nested_exc_group( function test_base_exception_captured (line 171) | async def test_base_exception_captured( function test_exc_group_captured (line 191) | async def test_exc_group_captured( function test_base_exception_capture_from_coroutine (line 209) | async def test_base_exception_capture_from_coroutine( function test_main_entrypoint (line 233) | def test_main_entrypoint() -> None: function should_try_newline_injection (line 241) | def should_try_newline_injection() -> bool: function test_ki_newline_injection (line 257) | def test_ki_newline_injection() -> None: # TODO: test this line function test_ki_in_repl (line 309) | async def test_ki_in_repl() -> None: FILE: src/trio/_tests/test_scheduler_determinism.py function scheduler_trace (line 11) | async def scheduler_trace() -> tuple[tuple[str, int], ...]: function test_the_trio_scheduler_is_not_deterministic (line 27) | def test_the_trio_scheduler_is_not_deterministic() -> None: function test_the_trio_scheduler_is_deterministic_if_seeded (line 33) | def test_the_trio_scheduler_is_deterministic_if_seeded( FILE: src/trio/_tests/test_signals.py function test_open_signal_receiver (line 17) | async def test_open_signal_receiver() -> None: function test_open_signal_receiver_restore_handler_after_one_bad_signal (line 41) | async def test_open_signal_receiver_restore_handler_after_one_bad_signal... function test_open_signal_receiver_empty_fail (line 53) | def test_open_signal_receiver_empty_fail() -> None: function test_open_signal_receiver_restore_handler_after_duplicate_signal (line 59) | async def test_open_signal_receiver_restore_handler_after_duplicate_sign... function test_catch_signals_wrong_thread (line 67) | async def test_catch_signals_wrong_thread() -> None: function test_open_signal_receiver_conflict (line 76) | async def test_open_signal_receiver_conflict() -> None: function wait_run_sync_soon_idempotent_queue_barrier (line 86) | async def wait_run_sync_soon_idempotent_queue_barrier() -> None: function test_open_signal_receiver_no_starvation (line 93) | async def test_open_signal_receiver_no_starvation() -> None: function test_catch_signals_race_condition_on_exit (line 124) | async def test_catch_signals_race_condition_on_exit() -> None: FILE: src/trio/_tests/test_socket.py class MonkeypatchedGAI (line 52) | class MonkeypatchedGAI: method __init__ (line 55) | def __init__( method _frozenbind (line 70) | def _frozenbind( method set (line 86) | def set( method getaddrinfo (line 107) | def getaddrinfo( function monkeygai (line 127) | def monkeygai(monkeypatch: pytest.MonkeyPatch) -> MonkeypatchedGAI: function test__try_sync (line 133) | async def test__try_sync() -> None: function test_socket_has_some_reexports (line 163) | def test_socket_has_some_reexports() -> None: function test_getaddrinfo (line 175) | async def test_getaddrinfo(monkeygai: MonkeypatchedGAI) -> None: function test_getnameinfo (line 265) | async def test_getnameinfo() -> None: function test_from_stdlib_socket (line 300) | async def test_from_stdlib_socket() -> None: function test_from_fd (line 322) | async def test_from_fd() -> None: function test_socketpair_simple (line 331) | async def test_socketpair_simple() -> None: function test_fromshare (line 345) | async def test_fromshare() -> None: function test_socket (line 359) | async def test_socket() -> None: function test_socket_v6 (line 366) | async def test_socket_v6() -> None: function test_sniff_sockopts (line 373) | async def test_sniff_sockopts() -> None: function test_SocketType_basics (line 406) | async def test_SocketType_basics() -> None: function test_SocketType_setsockopt (line 457) | async def test_SocketType_setsockopt() -> None: function setsockopt_tests (line 463) | def setsockopt_tests(sock: SocketType | SocketStream) -> None: function test_SocketType_dup (line 498) | async def test_SocketType_dup() -> None: function test_SocketType_shutdown (line 510) | async def test_SocketType_shutdown() -> None: function test_SocketType_simple_server (line 544) | async def test_SocketType_simple_server( function test_SocketType_is_readable (line 564) | async def test_SocketType_is_readable() -> None: function gai_without_v4mapped_is_buggy (line 578) | def gai_without_v4mapped_is_buggy() -> bool: # pragma: no cover class Addresses (line 588) | class Addresses: function test_SocketType_resolve (line 620) | async def test_SocketType_resolve(socket_type: AddressFamily, addrs: Add... function test_SocketType_unresolved_names (line 745) | async def test_SocketType_unresolved_names() -> None: function test_SocketType_non_blocking_paths (line 764) | async def test_SocketType_non_blocking_paths() -> None: function test_SocketType_connect_paths (line 840) | async def test_SocketType_connect_paths() -> None: function test_address_in_socket_error (line 914) | async def test_address_in_socket_error() -> None: function test_resolve_address_exception_in_connect_closes_socket (line 926) | async def test_resolve_address_exception_in_connect_closes_socket() -> N... function test_send_recv_variants (line 949) | async def test_send_recv_variants() -> None: function test_idna (line 1045) | async def test_idna(monkeygai: MonkeypatchedGAI) -> None: function test_getprotobyname (line 1063) | async def test_getprotobyname() -> None: function test_custom_hostname_resolver (line 1070) | async def test_custom_hostname_resolver(monkeygai: MonkeypatchedGAI) -> ... function test_custom_socket_factory (line 1131) | async def test_custom_socket_factory() -> None: function test_SocketType_is_abstract (line 1163) | def test_SocketType_is_abstract() -> None: function test_unix_domain_socket (line 1169) | async def test_unix_domain_socket() -> None: function test_interrupted_by_close (line 1201) | async def test_interrupted_by_close() -> None: function test_many_sockets (line 1231) | async def test_many_sockets() -> None: FILE: src/trio/_tests/test_ssl.py function client_ctx (line 88) | def client_ctx(request: pytest.FixtureRequest) -> ssl.SSLContext: function ssl_echo_serve_sync (line 105) | def ssl_echo_serve_sync( function ssl_echo_server_raw (line 161) | async def ssl_echo_server_raw(expect_fail: bool = False) -> AsyncIterato... function ssl_echo_server (line 179) | async def ssl_echo_server( class PyOpenSSLEchoStream (line 192) | class PyOpenSSLEchoStream(Stream): method __init__ (line 193) | def __init__( method aclose (line 238) | async def aclose(self) -> None: method renegotiate_pending (line 241) | def renegotiate_pending(self) -> bool: method renegotiate (line 244) | def renegotiate(self) -> None: method wait_send_all_might_not_block (line 249) | async def wait_send_all_might_not_block(self) -> None: method send_all (line 255) | async def send_all(self, data: bytes) -> None: method receive_some (line 278) | async def receive_some(self, nbytes: int | None = None) -> bytes: function test_PyOpenSSLEchoStream_gives_resource_busy_errors (line 334) | async def test_PyOpenSSLEchoStream_gives_resource_busy_errors() -> None: function virtual_ssl_echo_server (line 367) | def virtual_ssl_echo_server( function ssl_wrap_pair (line 375) | def ssl_wrap_pair( # type: ignore[explicit-any] function ssl_memory_stream_pair (line 405) | def ssl_memory_stream_pair( function ssl_lockstep_stream_pair (line 426) | def ssl_lockstep_stream_pair( function test_ssl_client_basics (line 447) | async def test_ssl_client_basics(client_ctx: SSLContext) -> None: function test_ssl_server_basics (line 473) | async def test_ssl_server_basics(client_ctx: SSLContext) -> None: function test_attributes (line 506) | async def test_attributes(client_ctx: SSLContext) -> None: function test_full_duplex_basics (line 575) | async def test_full_duplex_basics(client_ctx: SSLContext) -> None: function test_renegotiation_simple (line 612) | async def test_renegotiation_simple(client_ctx: SSLContext) -> None: function test_renegotiation_randomized (line 630) | async def test_renegotiation_randomized( function test_resource_busy_errors (line 752) | async def test_resource_busy_errors(client_ctx: SSLContext) -> None: function test_wait_writable_calls_underlying_wait_writable (line 787) | async def test_wait_writable_calls_underlying_wait_writable() -> None: function test_checkpoints (line 814) | async def test_checkpoints(client_ctx: SSLContext) -> None: function test_send_all_empty_string (line 843) | async def test_send_all_empty_string(client_ctx: SSLContext) -> None: function test_SSLStream_generic (line 860) | async def test_SSLStream_generic( function test_unwrap (line 893) | async def test_unwrap(client_ctx: SSLContext) -> None: function test_closing_nice_case (line 947) | async def test_closing_nice_case(client_ctx: SSLContext) -> None: function test_send_all_fails_in_the_middle (line 1009) | async def test_send_all_fails_in_the_middle(client_ctx: SSLContext) -> N... function test_ssl_over_ssl (line 1040) | async def test_ssl_over_ssl(client_ctx: SSLContext) -> None: function test_ssl_bad_shutdown (line 1070) | async def test_ssl_bad_shutdown(client_ctx: SSLContext) -> None: function test_ssl_bad_shutdown_but_its_ok (line 1087) | async def test_ssl_bad_shutdown_but_its_ok(client_ctx: SSLContext) -> None: function test_ssl_handshake_failure_during_aclose (line 1107) | async def test_ssl_handshake_failure_during_aclose() -> None: function test_ssl_only_closes_stream_once (line 1126) | async def test_ssl_only_closes_stream_once(client_ctx: SSLContext) -> None: function test_ssl_https_compatibility_disagreement (line 1152) | async def test_ssl_https_compatibility_disagreement(client_ctx: SSLConte... function test_https_mode_eof_before_handshake (line 1176) | async def test_https_mode_eof_before_handshake(client_ctx: SSLContext) -... function test_send_error_during_handshake (line 1191) | async def test_send_error_during_handshake(client_ctx: SSLContext) -> None: function test_receive_error_during_handshake (line 1208) | async def test_receive_error_during_handshake(client_ctx: SSLContext) ->... function test_selected_alpn_protocol_before_handshake (line 1231) | def test_selected_alpn_protocol_before_handshake(client_ctx: SSLContext)... function test_selected_alpn_protocol_when_not_set (line 1241) | async def test_selected_alpn_protocol_when_not_set(client_ctx: SSLContex... function test_selected_npn_protocol_before_handshake (line 1256) | def test_selected_npn_protocol_before_handshake(client_ctx: SSLContext) ... function test_selected_npn_protocol_when_not_set (line 1270) | async def test_selected_npn_protocol_when_not_set(client_ctx: SSLContext... function test_get_channel_binding_before_handshake (line 1285) | def test_get_channel_binding_before_handshake(client_ctx: SSLContext) ->... function test_get_channel_binding_after_handshake (line 1295) | async def test_get_channel_binding_after_handshake(client_ctx: SSLContex... function test_getpeercert (line 1308) | async def test_getpeercert(client_ctx: SSLContext) -> None: function test_SSLListener (line 1321) | async def test_SSLListener(client_ctx: SSLContext) -> None: FILE: src/trio/_tests/test_subprocess.py function python (line 64) | def python(code: str) -> list[str]: function SLEEP (line 74) | def SLEEP(seconds: int) -> list[str]: function SLEEP (line 79) | def SLEEP(seconds: int) -> list[str]: function open_process_then_kill (line 84) | async def open_process_then_kill( # type: ignore[misc, explicit-any] function run_process_in_nursery (line 97) | async def run_process_in_nursery( # type: ignore[misc, explicit-any] function test_basic (line 123) | async def test_basic(background_process: BackgroundProcessType) -> None: function test_basic_no_pidfd (line 141) | async def test_basic_no_pidfd(background_process: BackgroundProcessType)... function test_auto_update_returncode (line 161) | async def test_auto_update_returncode( function test_multi_wait (line 176) | async def test_multi_wait(background_process: BackgroundProcessType) -> ... function test_multi_wait_no_pidfd (line 196) | async def test_multi_wait_no_pidfd(background_process: BackgroundProcess... function test_pipes (line 224) | async def test_pipes(background_process: BackgroundProcessType) -> None: function test_interactive (line 259) | async def test_interactive(background_process: BackgroundProcessType) ->... function test_run (line 335) | async def test_run() -> None: function test_run_check (line 392) | async def test_run_check() -> None: function test_run_with_broken_pipe (line 414) | async def test_run_with_broken_pipe() -> None: function test_stderr_stdout (line 424) | async def test_stderr_stdout(background_process: BackgroundProcessType) ... function test_errors (line 493) | async def test_errors() -> None: function test_signals (line 508) | async def test_signals(background_process: BackgroundProcessType) -> None: function test_wait_reapable_fails (line 539) | async def test_wait_reapable_fails(background_process: BackgroundProcess... function test_wait_reapable_fails_no_pidfd (line 561) | async def test_wait_reapable_fails_no_pidfd( function test_waitid_eintr (line 585) | def test_waitid_eintr() -> None: function test_custom_deliver_cancel (line 625) | async def test_custom_deliver_cancel() -> None: function test_bad_deliver_cancel (line 649) | def test_bad_deliver_cancel() -> None: function test_warn_on_failed_cancel_terminate (line 669) | async def test_warn_on_failed_cancel_terminate(monkeypatch: pytest.Monke... function test_warn_on_cancel_SIGKILL_escalation (line 686) | async def test_warn_on_cancel_SIGKILL_escalation( function test_run_process_background_fail (line 701) | async def test_run_process_background_fail() -> None: function test_for_leaking_fds (line 714) | async def test_for_leaking_fds() -> None: function test_run_process_internal_error (line 730) | async def test_run_process_internal_error(monkeypatch: pytest.MonkeyPatc... function test_subprocess_pidfd_unnotified (line 742) | async def test_subprocess_pidfd_unnotified() -> None: FILE: src/trio/_tests/test_sync.py function test_Event (line 17) | async def test_Event() -> None: function test_CapacityLimiter (line 53) | async def test_CapacityLimiter() -> None: function test_CapacityLimiter_inf (line 123) | async def test_CapacityLimiter_inf() -> None: function test_CapacityLimiter_change_total_tokens (line 139) | async def test_CapacityLimiter_change_total_tokens() -> None: function test_CapacityLimiter_memleak_548 (line 176) | async def test_CapacityLimiter_memleak_548() -> None: function test_CapacityLimiter_zero_limit_tokens (line 190) | async def test_CapacityLimiter_zero_limit_tokens() -> None: function test_Semaphore (line 267) | async def test_Semaphore() -> None: function test_Semaphore_bounded (line 315) | def test_Semaphore_bounded() -> None: function test_Lock_and_StrictFIFOLock (line 333) | async def test_Lock_and_StrictFIFOLock( function test_Condition (line 410) | async def test_Condition() -> None: class ChannelLock1 (line 501) | class ChannelLock1(AsyncContextManagerMixin): method __init__ (line 502) | def __init__(self, capacity: int) -> None: method acquire_nowait (line 507) | def acquire_nowait(self) -> None: method acquire (line 510) | async def acquire(self) -> None: method release (line 513) | def release(self) -> None: class ChannelLock2 (line 517) | class ChannelLock2(AsyncContextManagerMixin): method __init__ (line 518) | def __init__(self) -> None: method acquire_nowait (line 522) | def acquire_nowait(self) -> None: method acquire (line 525) | async def acquire(self) -> None: method release (line 528) | def release(self) -> None: class ChannelLock3 (line 532) | class ChannelLock3(AsyncContextManagerMixin): method __init__ (line 533) | def __init__(self) -> None: method acquire_nowait (line 540) | def acquire_nowait(self) -> None: method acquire (line 544) | async def acquire(self) -> None: method release (line 551) | def release(self) -> None: function test_generic_lock_exclusion (line 601) | async def test_generic_lock_exclusion(lock_factory: LockFactory) -> None: function test_generic_lock_fifo_fairness (line 630) | async def test_generic_lock_fifo_fairness(lock_factory: LockFactory) -> ... function test_generic_lock_acquire_nowait_blocks_acquire (line 654) | async def test_generic_lock_acquire_nowait_blocks_acquire( function test_lock_acquire_unowned_lock (line 675) | async def test_lock_acquire_unowned_lock() -> None: function test_lock_multiple_acquire (line 692) | async def test_lock_multiple_acquire() -> None: function test_lock_handover (line 709) | async def test_lock_handover() -> None: FILE: src/trio/_tests/test_testing.py function test_wait_all_tasks_blocked (line 22) | async def test_wait_all_tasks_blocked() -> None: function test_wait_all_tasks_blocked_with_timeouts (line 54) | async def test_wait_all_tasks_blocked_with_timeouts(mock_clock: MockCloc... function test_wait_all_tasks_blocked_with_cushion (line 71) | async def test_wait_all_tasks_blocked_with_cushion() -> None: function test_assert_checkpoints (line 113) | async def test_assert_checkpoints(recwarn: pytest.WarningsRecorder) -> N... function test_assert_no_checkpoints (line 139) | async def test_assert_no_checkpoints(recwarn: pytest.WarningsRecorder) -... function test_Sequencer (line 169) | async def test_Sequencer() -> None: function test_Sequencer_cancel (line 207) | async def test_Sequencer_cancel() -> None: function test__assert_raises (line 237) | def test__assert_raises() -> None: function test__UnboundeByteQueue (line 252) | async def test__UnboundeByteQueue() -> None: function test_MemorySendStream (line 324) | async def test_MemorySendStream() -> None: function test_MemoryReceiveStream (line 416) | async def test_MemoryReceiveStream() -> None: function test_MemoryRecvStream_closing (line 477) | async def test_MemoryRecvStream_closing() -> None: function test_memory_stream_pump (line 497) | async def test_memory_stream_pump() -> None: function test_memory_stream_one_way_pair (line 521) | async def test_memory_stream_one_way_pair() -> None: function test_memory_stream_pair (line 577) | async def test_memory_stream_pair() -> None: function test_memory_streams_with_generic_tests (line 599) | async def test_memory_streams_with_generic_tests() -> None: function test_lockstep_streams_with_generic_tests (line 614) | async def test_lockstep_streams_with_generic_tests() -> None: function test_open_stream_to_socket_listener (line 629) | async def test_open_stream_to_socket_listener() -> None: function test_trio_test (line 671) | def test_trio_test() -> None: FILE: src/trio/_tests/test_testing_raisesgroup.py function wrap_escape (line 17) | def wrap_escape(s: str) -> str: function fails_raises_group (line 21) | def fails_raises_group( function test_raises_group (line 31) | def test_raises_group() -> None: function test_incorrect_number_exceptions (line 75) | def test_incorrect_number_exceptions() -> None: function test_flatten_subgroups (line 137) | def test_flatten_subgroups() -> None: function test_catch_unwrapped_exceptions (line 260) | def test_catch_unwrapped_exceptions() -> None: function test_match (line 340) | def test_match() -> None: function test_check (line 383) | def test_check() -> None: function test_unwrapped_match_check (line 400) | def test_unwrapped_match_check() -> None: function test_RaisesGroup_matches (line 431) | def test_RaisesGroup_matches() -> None: function test_message (line 438) | def test_message() -> None: function test_assert_message (line 497) | def test_assert_message() -> None: function test_message_indent (line 615) | def test_message_indent() -> None: function test_suggestion_on_nested_and_brief_error (line 683) | def test_suggestion_on_nested_and_brief_error() -> None: function test_assert_message_nested (line 748) | def test_assert_message_nested() -> None: function test_check_no_patched_repr (line 835) | def test_check_no_patched_repr() -> None: function test_misordering_example (line 862) | def test_misordering_example() -> None: function test_brief_error_on_one_fail (line 895) | def test_brief_error_on_one_fail() -> None: function test_identity_oopsies (line 940) | def test_identity_oopsies() -> None: function test_matcher (line 983) | def test_matcher() -> None: function test_matcher_match (line 1006) | def test_matcher_match() -> None: function test_Matcher_check (line 1040) | def test_Matcher_check() -> None: function test_matcher_tostring (line 1074) | def test_matcher_tostring() -> None: function test_raisesgroup_tostring (line 1087) | def test_raisesgroup_tostring() -> None: function test__ExceptionInfo (line 1104) | def test__ExceptionInfo(monkeypatch: pytest.MonkeyPatch) -> None: function test_raisesgroup_matcher_deprecation (line 1117) | def test_raisesgroup_matcher_deprecation() -> None: FILE: src/trio/_tests/test_threads.py function test_do_in_trio_thread (line 54) | async def test_do_in_trio_thread() -> None: function test_do_in_trio_thread_from_trio_thread (line 114) | async def test_do_in_trio_thread_from_trio_thread() -> None: function test_run_in_trio_thread_ki (line 125) | def test_run_in_trio_thread_ki() -> None: function test_await_in_trio_thread_while_main_exits (line 173) | def test_await_in_trio_thread_while_main_exits() -> None: function test_named_thread (line 201) | async def test_named_thread() -> None: function _get_thread_name (line 230) | def _get_thread_name(ident: int | None = None) -> str | None: function test_named_thread_os (line 276) | async def test_named_thread_os() -> None: function test_has_pthread_setname_np (line 311) | def test_has_pthread_setname_np() -> None: function test_run_in_worker_thread (line 320) | async def test_run_in_worker_thread() -> None: function test_run_in_worker_thread_cancellation (line 342) | async def test_run_in_worker_thread_cancellation() -> None: function test_run_in_worker_thread_abandoned (line 402) | def test_run_in_worker_thread_abandoned( function test_run_in_worker_thread_limiter (line 443) | async def test_run_in_worker_thread_limiter( function test_run_in_worker_thread_custom_limiter (line 559) | async def test_run_in_worker_thread_custom_limiter() -> None: function test_run_in_worker_thread_limiter_error (line 579) | async def test_run_in_worker_thread_limiter_error() -> None: function test_run_in_worker_thread_fail_to_spawn (line 607) | async def test_run_in_worker_thread_fail_to_spawn( function test_trio_to_thread_run_sync_token (line 627) | async def test_trio_to_thread_run_sync_token() -> None: function test_trio_to_thread_run_sync_expected_error (line 639) | async def test_trio_to_thread_run_sync_expected_error() -> None: function test_trio_to_thread_run_sync_contextvars (line 653) | async def test_trio_to_thread_run_sync_contextvars() -> None: function test_trio_from_thread_run_sync (line 690) | async def test_trio_from_thread_run_sync() -> None: function test_trio_from_thread_run (line 711) | async def test_trio_from_thread_run() -> None: function test_trio_from_thread_token (line 735) | async def test_trio_from_thread_token() -> None: function test_trio_from_thread_token_kwarg (line 747) | async def test_trio_from_thread_token_kwarg() -> None: function test_from_thread_no_token (line 759) | async def test_from_thread_no_token() -> None: function test_trio_from_thread_run_sync_contextvars (line 767) | async def test_trio_from_thread_run_sync_contextvars() -> None: function test_trio_from_thread_run_contextvars (line 810) | async def test_trio_from_thread_run_contextvars() -> None: function test_run_fn_as_system_task_caught_badly_typed_token (line 853) | def test_run_fn_as_system_task_caught_badly_typed_token() -> None: function test_from_thread_inside_trio_thread (line 861) | async def test_from_thread_inside_trio_thread() -> None: function test_from_thread_run_during_shutdown (line 870) | def test_from_thread_run_during_shutdown() -> None: function test_trio_token_weak_referenceable (line 897) | async def test_trio_token_weak_referenceable() -> None: function test_unsafe_abandon_on_cancel_kwarg (line 904) | async def test_unsafe_abandon_on_cancel_kwarg() -> None: function test_from_thread_reuses_task (line 915) | async def test_from_thread_reuses_task() -> None: function test_recursive_to_thread (line 925) | async def test_recursive_to_thread() -> None: function test_from_thread_host_cancelled (line 936) | async def test_from_thread_host_cancelled() -> None: function child (line 995) | async def child( function test_from_thread_check_cancelled_no_abandon (line 1013) | async def test_from_thread_check_cancelled_no_abandon(cancel_the_scope: ... function test_from_thread_check_cancelled_abandon_on_cancel (line 1056) | async def test_from_thread_check_cancelled_abandon_on_cancel() -> None: function test_from_thread_check_cancelled_raises_in_foreign_threads (line 1104) | def test_from_thread_check_cancelled_raises_in_foreign_threads() -> None: function test_reentry_doesnt_deadlock (line 1114) | async def test_reentry_doesnt_deadlock() -> None: function test_wait_all_threads_completed (line 1129) | async def test_wait_all_threads_completed() -> None: function test_wait_all_threads_completed_no_threads (line 1171) | async def test_wait_all_threads_completed_no_threads() -> None: FILE: src/trio/_tests/test_timeouts.py function check_takes_about (line 31) | async def check_takes_about(f: Callable[[], Awaitable[T]], expected_dur:... function test_sleep (line 66) | async def test_sleep() -> None: function test_move_on_after (line 86) | async def test_move_on_after() -> None: function test_cannot_wake_sleep_forever (line 94) | async def test_cannot_wake_sleep_forever() -> None: class TimeoutScope (line 108) | class TimeoutScope(Protocol): method __call__ (line 109) | def __call__(self, seconds: float, *, shield: bool) -> trio.CancelScop... function test_context_shields_from_outer (line 113) | async def test_context_shields_from_outer(scope: TimeoutScope) -> None: function test_move_on_after_moves_on_even_if_shielded (line 126) | async def test_move_on_after_moves_on_even_if_shielded() -> None: function test_fail_after_fails_even_if_shielded (line 138) | async def test_fail_after_fails_even_if_shielded() -> None: function test_fail (line 157) | async def test_fail() -> None: function test_timeouts_raise_value_error (line 179) | async def test_timeouts_raise_value_error() -> None: function test_timeout_deadline_on_entry (line 212) | async def test_timeout_deadline_on_entry(mock_clock: _core.MockClock) ->... function test_invalid_access_unentered (line 246) | async def test_invalid_access_unentered(mock_clock: _core.MockClock) -> ... function test_fail_access_before_entering (line 277) | async def test_fail_access_before_entering() -> None: # pragma: no cover FILE: src/trio/_tests/test_tracing.py function coro1 (line 11) | async def coro1(event: trio.Event) -> None: function coro2 (line 16) | async def coro2(event: trio.Event) -> None: function coro3 (line 20) | async def coro3(event: trio.Event) -> None: function coro2_async_gen (line 24) | async def coro2_async_gen(event: trio.Event) -> AsyncGenerator[None, None]: function coro3_async_gen (line 35) | async def coro3_async_gen(event: trio.Event) -> None: function test_task_iter_await_frames (line 40) | async def test_task_iter_await_frames() -> None: function test_task_iter_await_frames_async_gen (line 57) | async def test_task_iter_await_frames_async_gen() -> None: function test_closed_task_iter_await_frames (line 74) | async def test_closed_task_iter_await_frames() -> None: FILE: src/trio/_tests/test_trio.py function test_trio_import (line 1) | def test_trio_import() -> None: FILE: src/trio/_tests/test_unix_pipes.py function make_pipe (line 27) | async def make_pipe() -> tuple[FdStream, FdStream]: function make_clogged_pipe (line 33) | async def make_clogged_pipe() -> tuple[FdStream, FdStream]: function test_send_pipe (line 59) | async def test_send_pipe() -> None: function test_receive_pipe (line 69) | async def test_receive_pipe() -> None: function test_pipes_combined (line 79) | async def test_pipes_combined() -> None: function test_pipe_errors (line 103) | async def test_pipe_errors() -> None: function test_del (line 114) | async def test_del() -> None: function test_async_with (line 129) | async def test_async_with() -> None: function test_misdirected_aclose_regression (line 146) | async def test_misdirected_aclose_regression() -> None: function test_close_at_bad_time_for_receive_some (line 184) | async def test_close_at_bad_time_for_receive_some( function test_close_at_bad_time_for_send_all (line 217) | async def test_close_at_bad_time_for_send_all(monkeypatch: pytest.Monkey... function test_bizarro_OSError_from_receive (line 267) | async def test_bizarro_OSError_from_receive() -> None: function test_pipe_fully (line 287) | async def test_pipe_fully() -> None: FILE: src/trio/_tests/test_util.py function test_ConflictDetector (line 40) | async def test_ConflictDetector() -> None: function test_module_metadata_is_fixed_up (line 63) | def test_module_metadata_is_fixed_up() -> None: function test_is_main_thread (line 87) | async def test_is_main_thread() -> None: function test_coroutine_or_error (line 98) | def test_coroutine_or_error() -> None: function test_final_decorator (line 161) | def test_final_decorator() -> None: function test_no_public_constructor_metaclass (line 178) | def test_no_public_constructor_metaclass() -> None: function test_fixup_module_metadata (line 194) | def test_fixup_module_metadata() -> None: function test_raise_single_exception_from_group (line 262) | async def test_raise_single_exception_from_group() -> None: FILE: src/trio/_tests/test_wait_for_object.py function test_WaitForMultipleObjects_sync (line 19) | def test_WaitForMultipleObjects_sync() -> None: function test_WaitForMultipleObjects_sync_slow (line 73) | async def test_WaitForMultipleObjects_sync_slow() -> None: function test_WaitForSingleObject (line 136) | async def test_WaitForSingleObject() -> None: function test_WaitForSingleObject_slow (line 171) | async def test_WaitForSingleObject_slow() -> None: FILE: src/trio/_tests/test_windows_pipes.py function make_pipe (line 25) | async def make_pipe() -> tuple[PipeSendStream, PipeReceiveStream]: function test_pipe_typecheck (line 31) | def test_pipe_typecheck() -> None: function test_pipe_error_on_close (line 38) | async def test_pipe_error_on_close() -> None: function test_pipes_combined (line 54) | async def test_pipes_combined() -> None: function test_async_with (line 83) | async def test_async_with() -> None: function test_close_during_write (line 94) | async def test_close_during_write() -> None: function test_pipe_fully (line 109) | async def test_pipe_fully() -> None: FILE: src/trio/_tests/tools/test_gen_exports.py function test_get_public_methods (line 65) | def test_get_public_methods() -> None: function test_create_pass_through_args (line 70) | def test_create_pass_through_args() -> None: function test_process (line 97) | def test_process( function test_run_ruff (line 139) | def test_run_ruff(tmp_path: Path) -> None: function test_lint_failure (line 165) | def test_lint_failure(tmp_path: Path) -> None: FILE: src/trio/_tests/tools/test_mypy_annotate.py function test_processing (line 56) | def test_processing(src: str, expected: Result | None) -> None: function test_export (line 61) | def test_export(capsys: pytest.CaptureFixture[str]) -> None: function test_endtoend (line 103) | def test_endtoend( FILE: src/trio/_tests/tools/test_sync_requirements.py function test_yield_pre_commit_version_data (line 23) | def test_yield_pre_commit_version_data() -> None: function test_update_requirements (line 39) | def test_update_requirements( function test_update_requirements_no_changes (line 64) | def test_update_requirements_no_changes( FILE: src/trio/_tests/type_tests/check_wraps.py function fn (line 7) | async def fn(s: trio.SocketStream) -> None: FILE: src/trio/_tests/type_tests/path.py function operator_checks (line 14) | def operator_checks(text: str, tpath: trio.Path, ppath: pathlib.Path) ->... function sync_attrs (line 37) | def sync_attrs(path: trio.Path) -> None: function async_attrs (line 63) | async def async_attrs(path: trio.Path) -> None: function open_results (line 117) | async def open_results(path: trio.Path, some_int: int, some_str: str) ->... FILE: src/trio/_tests/type_tests/subprocesses.py function test (line 6) | async def test() -> None: FILE: src/trio/_tests/type_tests/task_status.py function check_status (line 7) | def check_status( FILE: src/trio/_threads.py class _ParentTaskData (line 41) | class _ParentTaskData(threading.local): class _ActiveThreadCount (line 61) | class _ActiveThreadCount: function _track_active_thread (line 70) | def _track_active_thread() -> Generator[None, None, None]: function wait_all_threads_completed (line 87) | async def wait_all_threads_completed() -> None: function active_thread_count (line 115) | def active_thread_count() -> int: function current_default_thread_limiter (line 126) | def current_default_thread_limiter() -> CapacityLimiter: class ThreadPlaceholder (line 147) | class ThreadPlaceholder: class Run (line 153) | class Run(Generic[RetT]): # type: ignore[explicit-any] method unprotected_afn (line 166) | async def unprotected_afn(self) -> RetT: method run (line 170) | async def run(self) -> None: method run_system (line 181) | async def run_system(self) -> None: method run_in_host_task (line 185) | def run_in_host_task(self, token: TrioToken) -> None: method run_in_system_nursery (line 195) | def run_in_system_nursery(self, token: TrioToken) -> None: class RunSync (line 212) | class RunSync(Generic[RetT]): # type: ignore[explicit-any] method unprotected_fn (line 225) | def unprotected_fn(self) -> RetT: method run_sync (line 238) | def run_sync(self) -> None: method run_in_host_task (line 242) | def run_in_host_task(self, token: TrioToken) -> None: method run_in_system_nursery (line 252) | def run_in_system_nursery(self, token: TrioToken) -> None: function to_thread_run_sync (line 257) | async def to_thread_run_sync( function from_thread_check_cancelled (line 461) | def from_thread_check_cancelled() -> None: function _send_message_to_trio (line 498) | def _send_message_to_trio( function from_thread_run (line 531) | def from_thread_run( function from_thread_run_sync (line 575) | def from_thread_run_sync( FILE: src/trio/_timeouts.py function move_on_at (line 14) | def move_on_at(deadline: float, *, shield: bool = False) -> trio.CancelS... function move_on_after (line 31) | def move_on_after( function sleep_forever (line 61) | async def sleep_forever() -> NoReturn: function sleep_until (line 75) | async def sleep_until(deadline: float) -> None: function sleep (line 95) | async def sleep(seconds: float) -> None: class TooSlowError (line 114) | class TooSlowError(Exception): function fail_at (line 122) | def fail_at( function fail_after (line 156) | def fail_after( FILE: src/trio/_tools/gen_exports.py class File (line 48) | class File: function is_function (line 55) | def is_function(node: ast.AST) -> TypeGuard[ast.FunctionDef | ast.AsyncF... function is_public (line 62) | def is_public(node: ast.AST) -> TypeGuard[ast.FunctionDef | ast.AsyncFun... function get_public_methods (line 71) | def get_public_methods( function create_passthrough_args (line 84) | def create_passthrough_args(funcdef: ast.FunctionDef | ast.AsyncFunction... function run_black (line 102) | def run_black(file: File, source: str) -> tuple[bool, str]: function run_ruff (line 133) | def run_ruff(file: File, source: str) -> tuple[bool, str]: function run_linters (line 171) | def run_linters(file: File, source: str) -> str: function gen_public_wrappers_source (line 191) | def gen_public_wrappers_source(file: File) -> str: function matches_disk_files (line 264) | def matches_disk_files(new_files: dict[str, str]) -> bool: function process (line 274) | def process(files: Iterable[File], *, do_test: bool) -> None: function main (line 301) | def main() -> None: # pragma: no cover FILE: src/trio/_tools/mypy_annotate.py class Result (line 41) | class Result: function process_line (line 53) | def process_line(line: str) -> Result | None: function export (line 69) | def export(results: dict[Result, list[str]]) -> None: function main (line 85) | def main(argv: list[str]) -> None: FILE: src/trio/_tools/sync_requirements.py function yield_pre_commit_version_data (line 27) | def yield_pre_commit_version_data( function update_requirements (line 41) | def update_requirements( FILE: src/trio/_unix_pipes.py class _FdHolder (line 20) | class _FdHolder: method __init__ (line 40) | def __init__(self, fd: int) -> None: method closed (line 52) | def closed(self) -> bool: method _raw_close (line 55) | def _raw_close(self) -> None: method __del__ (line 70) | def __del__(self) -> None: method close (line 73) | def close(self) -> None: class FdStream (line 80) | class FdStream(Stream): method __init__ (line 121) | def __init__(self, fd: int) -> None: method send_all (line 130) | async def send_all(self, data: bytes) -> None: method wait_send_all_might_not_block (line 155) | async def wait_send_all_might_not_block(self) -> None: method receive_some (line 161) | async def receive_some(self, max_bytes: int | None = None) -> bytes: method close (line 189) | def close(self) -> None: method aclose (line 192) | async def aclose(self) -> None: method fileno (line 196) | def fileno(self) -> int: FILE: src/trio/_util.py function is_main_thread (line 46) | def is_main_thread() -> bool: function coroutine_or_error (line 59) | def coroutine_or_error( class ConflictDetector (line 148) | class ConflictDetector: method __init__ (line 162) | def __init__(self, msg: str) -> None: method __enter__ (line 166) | def __enter__(self) -> None: method __exit__ (line 172) | def __exit__( function async_wraps (line 181) | def async_wraps( # type: ignore[explicit-any] function fixup_module_metadata (line 199) | def fixup_module_metadata( function _init_final_cls (line 231) | def _init_final_cls(cls: type[object]) -> NoReturn: function _final_impl (line 236) | def _final_impl(decorated: type[T]) -> type[T]: class NoPublicConstructor (line 265) | class NoPublicConstructor(ABCMeta): method __call__ (line 285) | def __call__(cls, *args: object, **kwargs: object) -> None: method _create (line 290) | def _create(cls: type[T], *args: object, **kwargs: object) -> T: function name_asyncgen (line 294) | def name_asyncgen(agen: AsyncGeneratorType[object, NoReturn]) -> str: function wraps (line 315) | def wraps( # type: ignore[explicit-any] function raise_saving_context (line 325) | def raise_saving_context(exc: BaseException) -> NoReturn: class MultipleExceptionError (line 338) | class MultipleExceptionError(Exception): function raise_single_exception_from_group (line 343) | def raise_single_exception_from_group( FILE: src/trio/_wait_for_object.py function WaitForSingleObject (line 18) | async def WaitForSingleObject(obj: int | CData) -> None: function WaitForMultipleObjects_sync (line 58) | def WaitForMultipleObjects_sync(*handles: int | CData) -> None: FILE: src/trio/_windows_pipes.py class _HandleHolder (line 19) | class _HandleHolder: method __init__ (line 20) | def __init__(self, handle: int) -> None: method closed (line 28) | def closed(self) -> bool: method close (line 31) | def close(self) -> None: method __del__ (line 39) | def __del__(self) -> None: class PipeSendStream (line 44) | class PipeSendStream(SendStream): method __init__ (line 49) | def __init__(self, handle: int) -> None: method send_all (line 55) | async def send_all(self, data: bytes) -> None: method wait_send_all_might_not_block (line 73) | async def wait_send_all_might_not_block(self) -> None: method close (line 81) | def close(self) -> None: method aclose (line 84) | async def aclose(self) -> None: class PipeReceiveStream (line 90) | class PipeReceiveStream(ReceiveStream): method __init__ (line 93) | def __init__(self, handle: int) -> None: method receive_some (line 99) | async def receive_some(self, max_bytes: int | None = None) -> bytes: method close (line 139) | def close(self) -> None: method aclose (line 142) | async def aclose(self) -> None: FILE: src/trio/testing/_check_streams.py class _ForceCloseBoth (line 35) | class _ForceCloseBoth(Generic[Res1, Res2]): method __init__ (line 36) | def __init__(self, both: tuple[Res1, Res2]) -> None: method __aenter__ (line 39) | async def __aenter__(self) -> tuple[Res1, Res2]: method __aexit__ (line 42) | async def __aexit__( function _assert_raises (line 57) | def _assert_raises( function check_one_way_stream (line 75) | async def check_one_way_stream( function check_two_way_stream (line 425) | async def check_two_way_stream( function check_half_closeable_stream (line 505) | async def check_half_closeable_stream( FILE: src/trio/testing/_checkpoints.py function _assert_yields_or_not (line 13) | def _assert_yields_or_not(expected: bool) -> Generator[None, None, None]: function assert_checkpoints (line 32) | def assert_checkpoints() -> AbstractContextManager[None]: function assert_no_checkpoints (line 52) | def assert_no_checkpoints() -> AbstractContextManager[None]: FILE: src/trio/testing/_fake_net.py function _family_for (line 37) | def _family_for(ip: IPAddress) -> int: function _wildcard_ip_for (line 45) | def _wildcard_ip_for(family: int) -> IPAddress: function _localhost_ip_for (line 54) | def _localhost_ip_for(family: int) -> IPAddress: # pragma: no cover function _fake_err (line 62) | def _fake_err(code: int) -> NoReturn: function _scatter (line 66) | def _scatter(data: bytes, buffers: Iterable[Buffer]) -> int: class UDPEndpoint (line 79) | class UDPEndpoint: method as_python_sockaddr (line 83) | def as_python_sockaddr(self) -> tuple[str, int] | tuple[str, int, int,... method from_python_sockaddr (line 93) | def from_python_sockaddr( class UDPBinding (line 102) | class UDPBinding: class UDPPacket (line 108) | class UDPPacket: method reply (line 114) | def reply(self, payload: bytes) -> UDPPacket: # pragma: no cover class FakeSocketFactory (line 123) | class FakeSocketFactory(trio.abc.SocketFactory): method socket (line 126) | def socket(self, family: int, type_: int, proto: int) -> FakeSocket: ... class FakeHostnameResolver (line 131) | class FakeHostnameResolver(trio.abc.HostnameResolver): method getaddrinfo (line 134) | async def getaddrinfo( method getnameinfo (line 153) | async def getnameinfo( class FakeNet (line 162) | class FakeNet: method __init__ (line 163) | def __init__(self) -> None: method _bind (line 173) | def _bind(self, binding: UDPBinding, socket: FakeSocket) -> None: method enable (line 178) | def enable(self) -> None: method send_packet (line 182) | def send_packet(self, packet: UDPPacket) -> None: method deliver_packet (line 188) | def deliver_packet(self, packet: UDPPacket) -> None: class FakeSocket (line 198) | class FakeSocket(trio.socket.SocketType, metaclass=NoPublicConstructor): method __init__ (line 199) | def __init__( method type (line 232) | def type(self) -> SocketKind: method family (line 236) | def family(self) -> AddressFamily: method proto (line 240) | def proto(self) -> int: method _check_closed (line 243) | def _check_closed(self) -> None: method close (line 247) | def close(self) -> None: method _resolve_address_nocp (line 255) | async def _resolve_address_nocp( method _deliver_packet (line 270) | def _deliver_packet(self, packet: UDPPacket) -> None: method bind (line 279) | async def bind(self, addr: object) -> None: method connect (line 300) | async def connect(self, peer: object) -> NoReturn: method _sendmsg (line 303) | async def _sendmsg( method _recvmsg_into (line 347) | async def _recvmsg_into( method getsockname (line 392) | def getsockname(self) -> tuple[str, int] | tuple[str, int, int, int]: method getpeername (line 403) | def getpeername(self) -> tuple[str, int] | tuple[str, int, int, int]: method getsockopt (line 419) | def getsockopt(self, /, level: int, optname: int) -> int: ... method getsockopt (line 422) | def getsockopt(self, /, level: int, optname: int, buflen: int) -> byte... method getsockopt (line 424) | def getsockopt( method setsockopt (line 435) | def setsockopt(self, /, level: int, optname: int, value: int | Buffer)... method setsockopt (line 438) | def setsockopt( method setsockopt (line 447) | def setsockopt( method __enter__ (line 469) | def __enter__(self) -> Self: method __exit__ (line 472) | def __exit__( method send (line 480) | async def send(self, data: Buffer, flags: int = 0) -> int: method sendto (line 485) | async def sendto( method sendto (line 493) | async def sendto( method sendto (line 500) | async def sendto( # type: ignore[explicit-any] method recv (line 516) | async def recv(self, bufsize: int, flags: int = 0) -> bytes: method recv_into (line 520) | async def recv_into(self, buf: Buffer, nbytes: int = 0, flags: int = 0... method recvfrom (line 524) | async def recvfrom( method recvfrom_into (line 532) | async def recvfrom_into( method _recvmsg (line 547) | async def _recvmsg( method fileno (line 566) | def fileno(self) -> int: method detach (line 569) | def detach(self) -> int: method get_inheritable (line 572) | def get_inheritable(self) -> bool: method set_inheritable (line 575) | def set_inheritable(self, inheritable: bool) -> None: method share (line 583) | def share(self, process_id: int) -> bytes: FILE: src/trio/testing/_memory_streams.py class _UnboundedByteQueue (line 23) | class _UnboundedByteQueue: method __init__ (line 24) | def __init__(self) -> None: method close (line 36) | def close(self) -> None: method close_and_wipe (line 40) | def close_and_wipe(self) -> None: method put (line 44) | def put(self, data: bytes | bytearray | memoryview) -> None: method _check_max_bytes (line 50) | def _check_max_bytes(self, max_bytes: int | None) -> None: method _get_impl (line 57) | def _get_impl(self, max_bytes: int | None) -> bytearray: method get_nowait (line 69) | def get_nowait(self, max_bytes: int | None = None) -> bytearray: method get (line 76) | async def get(self, max_bytes: int | None = None) -> bytearray: class MemorySendStream (line 87) | class MemorySendStream(SendStream): method __init__ (line 108) | def __init__( method send_all (line 122) | async def send_all(self, data: bytes | bytearray | memoryview) -> None: method wait_send_all_might_not_block (line 136) | async def wait_send_all_might_not_block(self) -> None: method close (line 151) | def close(self) -> None: method aclose (line 168) | async def aclose(self) -> None: method get_data (line 173) | async def get_data(self, max_bytes: int | None = None) -> bytearray: method get_data_nowait (line 189) | def get_data_nowait(self, max_bytes: int | None = None) -> bytearray: class MemoryReceiveStream (line 202) | class MemoryReceiveStream(ReceiveStream): method __init__ (line 219) | def __init__( method receive_some (line 232) | async def receive_some(self, max_bytes: int | None = None) -> bytearray: method close (line 255) | def close(self) -> None: method aclose (line 265) | async def aclose(self) -> None: method put_data (line 270) | def put_data(self, data: bytes | bytearray | memoryview) -> None: method put_eof (line 274) | def put_eof(self) -> None: function memory_stream_pump (line 288) | def memory_stream_pump( function memory_stream_one_way_pair (line 326) | def memory_stream_one_way_pair() -> tuple[MemorySendStream, MemoryReceiv... function _make_stapled_pair (line 365) | def _make_stapled_pair( function memory_stream_pair (line 378) | def memory_stream_pair() -> tuple[ class _LockstepByteQueue (line 463) | class _LockstepByteQueue: method __init__ (line 464) | def __init__(self) -> None: method _something_happened (line 477) | def _something_happened(self) -> None: method _wait_for (line 482) | async def _wait_for(self, fn: Callable[[], bool]) -> None: method close_sender (line 491) | def close_sender(self) -> None: method close_receiver (line 495) | def close_receiver(self) -> None: method send_all (line 499) | async def send_all(self, data: bytes | bytearray | memoryview) -> None: method wait_send_all_might_not_block (line 514) | async def wait_send_all_might_not_block(self) -> None: method receive_some (line 525) | async def receive_some(self, max_bytes: int | None = None) -> bytes | ... class _LockstepSendStream (line 557) | class _LockstepSendStream(SendStream): method __init__ (line 558) | def __init__(self, lbq: _LockstepByteQueue) -> None: method close (line 561) | def close(self) -> None: method aclose (line 564) | async def aclose(self) -> None: method send_all (line 568) | async def send_all(self, data: bytes | bytearray | memoryview) -> None: method wait_send_all_might_not_block (line 571) | async def wait_send_all_might_not_block(self) -> None: class _LockstepReceiveStream (line 575) | class _LockstepReceiveStream(ReceiveStream): method __init__ (line 576) | def __init__(self, lbq: _LockstepByteQueue) -> None: method close (line 579) | def close(self) -> None: method aclose (line 582) | async def aclose(self) -> None: method receive_some (line 586) | async def receive_some(self, max_bytes: int | None = None) -> bytes | ... function lockstep_stream_one_way_pair (line 590) | def lockstep_stream_one_way_pair() -> tuple[SendStream, ReceiveStream]: function lockstep_stream_pair (line 617) | def lockstep_stream_pair() -> tuple[ FILE: src/trio/testing/_network.py function open_stream_to_socket_listener (line 5) | async def open_stream_to_socket_listener( FILE: src/trio/testing/_raises_group.py class _ExceptionInfo (line 47) | class _ExceptionInfo(Generic[MatchE]): method __init__ (line 52) | def __init__( method fill_unfilled (line 58) | def fill_unfilled( method for_later (line 67) | def for_later(cls) -> _ExceptionInfo[MatchE]: method type (line 73) | def type(self) -> type[MatchE]: method value (line 81) | def value(self) -> MatchE: method tb (line 89) | def tb(self) -> types.TracebackType: method exconly (line 96) | def exconly(self, tryshort: bool = False) -> str: method errisinstance (line 101) | def errisinstance( method getrepr (line 109) | def getrepr( function _stringify_exception (line 140) | def _stringify_exception(exc: BaseException) -> str: function _match_pattern (line 153) | def _match_pattern(match: Pattern[str]) -> str | Pattern[str]: function repr_callable (line 158) | def repr_callable(fun: Callable[[BaseExcT_1], bool]) -> str: function _exception_type_name (line 166) | def _exception_type_name(e: type[BaseException]) -> str: function _check_raw_type (line 170) | def _check_raw_type( class AbstractMatcher (line 191) | class AbstractMatcher(ABC, Generic[BaseExcT_co]): method __init__ (line 194) | def __init__( method fail_reason (line 210) | def fail_reason(self) -> str | None: method _check_check (line 217) | def _check_check( method _check_match (line 231) | def _check_match(self, e: BaseException) -> bool: method matches (line 251) | def matches( class Matcher (line 260) | class Matcher(AbstractMatcher[MatchE]): method __init__ (line 280) | def __init__( method __init__ (line 288) | def __init__( method __init__ (line 297) | def __init__(self, *, check: Callable[[BaseException], bool]) -> None:... method __init__ (line 299) | def __init__( method matches (line 314) | def matches( method __repr__ (line 344) | def __repr__(self) -> str: method _check_type (line 357) | def _check_type(self, exception: BaseException) -> TypeGuard[MatchE]: class RaisesGroup (line 363) | class RaisesGroup(AbstractMatcher[BaseExceptionGroup[BaseExcT_co]]): method __init__ (line 422) | def __init__( method __init__ (line 432) | def __init__( method __init__ (line 447) | def __init__( method __init__ (line 456) | def __init__( method __init__ (line 465) | def __init__( method __init__ (line 477) | def __init__( method __init__ (line 486) | def __init__( method __init__ (line 497) | def __init__( method __init__ (line 513) | def __init__( method __enter__ (line 600) | def __enter__( method __enter__ (line 604) | def __enter__( method __enter__ (line 608) | def __enter__(self) -> ExceptionInfo[BaseExceptionGroup[BaseException]]: method __repr__ (line 614) | def __repr__(self) -> str: method _unroll_exceptions (line 630) | def _unroll_exceptions( method matches (line 645) | def matches( method matches (line 650) | def matches( method matches (line 655) | def matches( method _check_expected (line 755) | def _check_expected( method _repr_expected (line 774) | def _repr_expected(e: type[BaseException] | AbstractMatcher[BaseExcept... method _check_exceptions (line 782) | def _check_exceptions( method _check_exceptions (line 788) | def _check_exceptions( method _check_exceptions (line 794) | def _check_exceptions( method __exit__ (line 913) | def __exit__( method expected_type (line 945) | def expected_type(self) -> str: class NotChecked (line 961) | class NotChecked: ... class ResultHolder (line 964) | class ResultHolder: method __init__ (line 965) | def __init__( method set_result (line 976) | def set_result(self, expected: int, actual: int, result: str | None) -... method get_result (line 979) | def get_result(self, expected: int, actual: int) -> str | None: method has_result (line 985) | def has_result(self, expected: int, actual: int) -> bool: method no_match_for_expected (line 988) | def no_match_for_expected(self, expected: list[int]) -> bool: method no_match_for_actual (line 996) | def no_match_for_actual(self, actual: list[int]) -> bool: function possible_match (line 1005) | def possible_match(results: ResultHolder, used: set[int] | None = None) ... FILE: src/trio/testing/_sequencer.py class Sequencer (line 17) | class Sequencer: method __call__ (line 65) | async def __call__(self, position: int) -> AsyncIterator[None]: FILE: src/trio/testing/_trio_test.py function trio_test (line 20) | def trio_test(fn: Callable[ArgsT, Awaitable[RetT]]) -> Callable[ArgsT, R... FILE: tests/_trio_check_attrs_aliases.py function field (line 13) | def field(**kwargs: Any) -> Any: