Skip to content

Commit e34ce24

Browse files
committed
Add message properly
1 parent 2a723ff commit e34ce24

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/trio/_sync.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@ def statistics(self) -> EventStatistics:
114114
"""
115115
return EventStatistics(tasks_waiting=len(self._tasks))
116116

117-
@deprecated
117+
@deprecated(
118+
"trio.Event.__bool__ is deprecated since Trio 0.31.0, use trio.Event.is_set instead (https://github.com/python-trio/trio/issues/3238)",
119+
stacklevel=2,
120+
)
118121
def __bool__(self) -> Literal[True]:
119122
"""Return True and raise warning."""
120123
warn_deprecated(

test-requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ trustme # for the ssl + DTLS tests
88
pylint # for pylint finding all symbols tests
99
jedi; implementation_name == "cpython" # for jedi code completion tests
1010
cryptography>=41.0.0 # cryptography<41 segfaults on pypy3.10
11-
typing_extensions >= 4.15.0
1211

1312
# Tools
1413
black; implementation_name == "cpython"
@@ -40,3 +39,4 @@ outcome
4039
sniffio
4140
# 1.2.1 fixes types
4241
exceptiongroup >= 1.2.1; python_version < "3.11"
42+
typing_extensions >= 4.15.0

0 commit comments

Comments
 (0)