Skip to content

Commit 1f4d063

Browse files
committed
Improve docstrings
1 parent 35c238f commit 1f4d063

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

probdiffeq/ivpsolve.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525

2626
class Solution(Protocol, Generic[S]):
27-
"""An IVP solution protocol."""
27+
"""An protocol that defines expected solution types."""
2828

2929
t: Array
3030
"""The timepoints that the solution is expressed on."""
@@ -42,7 +42,7 @@ class Solution(Protocol, Generic[S]):
4242

4343

4444
class Solver(Protocol, Generic[T_contra, S]):
45-
"""An IVP solver protocol."""
45+
"""An protocol that defines expected solver types."""
4646

4747
def init(self, *, t, u: T_contra) -> S:
4848
"""Initialise the solver's state."""
@@ -336,7 +336,7 @@ def dt0_adaptive(vf, initial_values, /, t0, *, error_contraction_rate, rtol, ato
336336
@tree.register_dataclass
337337
@containers.dataclass
338338
class TimeStepState(Generic[T]):
339-
"""State for adaptive time-stepping."""
339+
"""A state variable type for adaptive time-stepping."""
340340

341341
dt: float
342342
"""The time-step-size proposal for the next step."""
@@ -379,7 +379,7 @@ class _RejectionLoopState:
379379

380380

381381
class RejectionLoop:
382-
"""Implement a rejection loop."""
382+
"""An implementation of a rejection loop."""
383383

384384
def __init__(
385385
self,

0 commit comments

Comments
 (0)