docs: add code fences to Example: docstring blocks (#2104)

This commit is contained in:
Jonathan Hefner 2026-02-19 14:06:11 -06:00 • committed by GitHub
commit cb07adeca3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -77,7 +77,8 @@ class StreamSpyCollection:
def stream_spy() -> Generator[Callable[[], StreamSpyCollection], None, None]:
"""Fixture that provides spies for both client and server write streams.
Example usage:
Example:
```python
async def test_something(stream_spy):
# ... set up server and client ...
@ -92,6 +93,7 @@ def stream_spy() -> Generator[Callable[[], StreamSpyCollection], None, None]:
# Clear for the next operation
spies.clear()
```
"""
client_spy = None
server_spy = None