Skip to content

Commit c959ebc

Browse files
committed
Adapt docstrings pt 1
1 parent 24a1d55 commit c959ebc

File tree

1 file changed

+10
-10
lines changed
  • molpipeline/abstract_pipeline_elements

1 file changed

+10
-10
lines changed

molpipeline/abstract_pipeline_elements/core.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from joblib import Parallel, delayed
2020
from loguru import logger
2121
from rdkit import Chem
22-
from rdkit.Chem import Mol as RDKitMol # pylint: disable=no-name-in-module
22+
from rdkit.Chem import Mol as RDKitMol
2323

2424
from molpipeline.utils.multi_proc import check_available_cores
2525

@@ -33,7 +33,7 @@ class InvalidInstance(NamedTuple):
3333
Id of the element which could not be processed.
3434
message: str
3535
Message why the element could not be processed.
36-
element_name: Optional[str]
36+
element_name: str | None
3737
Optional name of the element which could not be processed.
3838
The name of the pipeline element is often more descriptive than the id.
3939
"""
@@ -68,7 +68,7 @@ def __init__(self, filter_element_id: str, message: str | None = None) -> None:
6868
----------
6969
filter_element_id: str
7070
FilterElement which removed the molecule.
71-
message: Optional[str]
71+
message: str | None, optional
7272
Optional message why the molecule was removed.
7373
7474
Returns
@@ -106,11 +106,11 @@ def __init__(
106106
107107
Parameters
108108
----------
109-
name: Optional[str], optional (default=None)
109+
name: str | None, optional
110110
Name of PipelineElement
111-
n_jobs: int
111+
n_jobs: int, default=1
112112
Number of cores used for processing.
113-
uuid: Optional[str]
113+
uuid: str | None, optional
114114
Unique identifier of the PipelineElement.
115115
"""
116116
if name is None:
@@ -164,7 +164,7 @@ def get_params(self, deep: bool = True) -> dict[str, Any]:
164164
165165
Parameters
166166
----------
167-
deep: bool
167+
deep: bool, default=True
168168
If True get a deep copy of the parameters.
169169
170170
Returns
@@ -349,11 +349,11 @@ def __init__(
349349
350350
Parameters
351351
----------
352-
name: Optional[str], optional (default=None)
352+
name: str | None, optional
353353
Name of PipelineElement
354-
n_jobs: int
354+
n_jobs: int, default=1
355355
Number of cores used for processing.
356-
uuid: Optional[str]
356+
uuid: str | None, optional
357357
Unique identifier of the PipelineElement.
358358
"""
359359
super().__init__(name=name, n_jobs=n_jobs, uuid=uuid)

0 commit comments

Comments
 (0)