File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,6 @@ def autodoc_process_signature(
171
171
# currently undocumented things
172
172
logger = getLogger ("trio" )
173
173
UNDOCUMENTED = {
174
- "trio.CancelScope.relative_deadline" ,
175
174
"trio.MemorySendChannel" ,
176
175
"trio.MemoryReceiveChannel" ,
177
176
"trio.MemoryChannelStatistics" ,
@@ -201,7 +200,9 @@ def autodoc_process_docstring(
201
200
logger .warning (f"{ name } has no docstring" )
202
201
else :
203
202
if name in UNDOCUMENTED :
204
- logger .warning ("outdated list of undocumented things" )
203
+ logger .warning (
204
+ f"outdated list of undocumented things in docs/source/conf.py: { name !r} has a docstring"
205
+ )
205
206
206
207
207
208
def setup (app : Sphinx ) -> None :
Original file line number Diff line number Diff line change @@ -802,6 +802,18 @@ def deadline(self, new_deadline: float) -> None:
802
802
803
803
@property
804
804
def relative_deadline (self ) -> float :
805
+ """Read-write, :class:`float`. The number of seconds remaining until this
806
+ scope's deadline, relative to the current time.
807
+
808
+ Defaults to :data:`math.inf` ("no deadline"). Must be non-negative.
809
+
810
+ When modified
811
+ Before entering: sets the deadline relative to when the scope enters.
812
+ After entering: sets a new deadline relative to the current time.
813
+
814
+ Raises:
815
+ RuntimeError: if trying to read or modify an unentered scope with an absolute deadline, i.e. when :attr:`is_relative` is ``False``.
816
+ """
805
817
if self ._has_been_entered :
806
818
return self ._deadline - current_time ()
807
819
elif self ._deadline != inf :
You can’t perform that action at this time.
0 commit comments