Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ repos:
- id: sort-simple-yaml
files: .pre-commit-config.yaml
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.11.0
rev: 25.12.0
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.7
rev: v0.14.8
hooks:
- id: ruff-check
types: [file]
Expand Down Expand Up @@ -73,7 +73,7 @@ repos:
additional_dependencies: ["pyyaml"]
files: ^(test-requirements\.txt)|(\.pre-commit-config\.yaml)$
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.9.14
rev: 0.9.16
hooks:
# Compile requirements
- id: pip-compile
Expand Down
4 changes: 3 additions & 1 deletion src/trio/_core/_traps.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ class PermanentlyDetachCoroutineObject:
def _real_async_yield(
obj: MessageType,
) -> Generator[MessageType, None, None]:
return (yield obj)
# "Using `yield` and `return {value}` in a generator function can
# lead to confusing behavior"
return (yield obj) # noqa: B901


# Real yield value is from trio's main loop, but type checkers can't
Expand Down
6 changes: 3 additions & 3 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ attrs==25.4.0
# outcome
babel==2.17.0
# via sphinx
black==25.11.0 ; implementation_name == 'cpython'
black==25.12.0 ; implementation_name == 'cpython'
# via -r test-requirements.in
certifi==2025.11.12
# via requests
Expand Down Expand Up @@ -136,7 +136,7 @@ requests==2.32.5
# via sphinx
roman-numerals==3.1.0 ; python_full_version >= '3.11'
# via sphinx
ruff==0.14.7
ruff==0.14.8
# via -r test-requirements.in
sniffio==1.3.1
# via -r test-requirements.in
Expand Down Expand Up @@ -196,7 +196,7 @@ typing-extensions==4.15.0
# virtualenv
urllib3==2.5.0
# via requests
uv==0.9.14
uv==0.9.16
# via -r test-requirements.in
virtualenv==20.35.4
# via pre-commit
Loading