Skip to content

Commit c14129f

Browse files
author
Etienne Maheux
committed
[FIX] Forgot numpydoc in requirements_dev for test_docstrings to be executed
1 parent f2d80bb commit c14129f

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

leaspy/io/data/dataset.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,10 @@ def to_pandas(self) -> pd.DataFrame:
226226
def move_to_device(self, device: torch.device) -> None:
227227
"""
228228
Moves the dataset to the specified device.
229+
230+
Parameters
231+
----------
232+
device : torch.device
229233
"""
230234

231235
# I don't know if we should make the moved attributes explicit...

leaspy/models/abstract_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ def move_to_device(self, device: torch.device) -> None:
821821
822822
Parameters
823823
----------
824-
device : torch.devuce
824+
device : torch.device
825825
"""
826826

827827
# Note that in a model, the only tensors that need offloading to a

leaspy/models/utils/attributes/abstract_attributes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ def move_to_device(self, device: torch.device):
9898
Parameters
9999
----------
100100
device : torch.device
101-
102101
"""
103102
for attribute_name in dir(self):
104103
attribute = getattr(self, attribute_name)

requirements_dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
numpydoc
12
pytest
23
pytest-cov
34
pytest-subtests

0 commit comments

Comments
 (0)