Skip to content

Commit 05f6972

Browse files
committed
docstgring fixup
1 parent 98c553e commit 05f6972

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/icoco/problem.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ def save(self, label: int, method: str) -> None:
449449
a user- (or code-) defined value identifying the state.
450450
method : str
451451
a string specifying which method is used to save the state of the code. A code can
452-
provide different methods (for example in memory, on disk, etc.).
452+
provide different methods (for example in memory, on disk, etc.).
453453
454454
Raises
455455
------
@@ -479,7 +479,7 @@ def restore(self, label: int, method: str) -> None:
479479
a user- (or code-) defined value identifying the state.
480480
method : str
481481
a string specifying which method is used to save the state of the code. A code can
482-
provide different methods (for example in memory, on disk, etc.).
482+
provide different methods (for example in memory, on disk, etc.).
483483
484484
Raises
485485
------
@@ -508,7 +508,7 @@ def forget(self, label: int, method: str) -> None:
508508
a user- (or code-) defined value identifying the state.
509509
method : str
510510
a string specifying which method is used to save the state of the code. A code can
511-
provide different methods (for example in memory, on disk, etc.).
511+
provide different methods (for example in memory, on disk, etc.).
512512
513513
Raises
514514
------

src/icoco/problem_wrapper.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def save(self, label: int, method: str):
113113
a user- (or code-) defined value identifying the state.
114114
method : str
115115
a string specifying which method is used to save the state of the code. A code can
116-
provide different methods (for example in memory, on disk, etc.).
116+
provide different methods (for example in memory, on disk, etc.).
117117
"""
118118
self._states[(label, method)] = (self.time, self.stationnary)
119119

@@ -126,7 +126,7 @@ def is_state(self, label: int, method: str) -> bool:
126126
a user- (or code-) defined value identifying the state.
127127
method : str
128128
a string specifying which method is used to save the state of the code. A code can
129-
provide different methods (for example in memory, on disk, etc.).
129+
provide different methods (for example in memory, on disk, etc.).
130130
131131
Returns
132132
-------
@@ -144,7 +144,7 @@ def restore(self, label: int, method: str):
144144
a user- (or code-) defined value identifying the state.
145145
method : str
146146
a string specifying which method is used to save the state of the code. A code can
147-
provide different methods (for example in memory, on disk, etc.).
147+
provide different methods (for example in memory, on disk, etc.).
148148
"""
149149
if self.is_state(label=label, method=method):
150150
self._time = self._states[(label, method)][0]
@@ -159,7 +159,7 @@ def forget(self, label: int, method: str):
159159
a user- (or code-) defined value identifying the state.
160160
method : str
161161
a string specifying which method is used to save the state of the code. A code can
162-
provide different methods (for example in memory, on disk, etc.).
162+
provide different methods (for example in memory, on disk, etc.).
163163
"""
164164
if self.is_state(label=label, method=method):
165165
self._states.pop((label, method))
@@ -779,7 +779,7 @@ def save(self, label: int, method: str) -> None:
779779
a user- (or code-) defined value identifying the state.
780780
method : str
781781
a string specifying which method is used to save the state of the code. A code can
782-
provide different methods (for example in memory, on disk, etc.).
782+
provide different methods (for example in memory, on disk, etc.).
783783
784784
Raises
785785
------
@@ -822,7 +822,7 @@ def restore(self, label: int, method: str) -> None:
822822
a user- (or code-) defined value identifying the state.
823823
method : str
824824
a string specifying which method is used to save the state of the code. A code can
825-
provide different methods (for example in memory, on disk, etc.).
825+
provide different methods (for example in memory, on disk, etc.).
826826
827827
Raises
828828
------
@@ -869,7 +869,7 @@ def forget(self, label: int, method: str) -> None:
869869
a user- (or code-) defined value identifying the state.
870870
method : str
871871
a string specifying which method is used to save the state of the code. A code can
872-
provide different methods (for example in memory, on disk, etc.).
872+
provide different methods (for example in memory, on disk, etc.).
873873
874874
Raises
875875
------

0 commit comments

Comments
 (0)