Skip to content

Commit 0c0f8c0

Browse files
committed
fix
1 parent c72385e commit 0c0f8c0

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

src/_pytask/data_catalog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class DataCatalog:
5353
----------
5454
default_node
5555
A default node for loading and saving values. By default,
56-
[pytask.PickleNode][] is used to serialize any Python object with the
56+
[`pytask.PickleNode`][] is used to serialize any Python object with the
5757
`pickle` module.
5858
name
5959
The name of the data catalog which can only contain letters, numbers, hyphens

src/_pytask/nodes.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ class PythonNode(PNode):
236236
237237
Examples
238238
--------
239-
To allow a [pytask.PythonNode][] to hash a dictionary, you need to pass your
239+
To allow a [`pytask.PythonNode`][] to hash a dictionary, you need to pass your
240240
own hashing function. For example, from the `deepdiff` library.
241241
242242
>>> from deepdiff import DeepHash
@@ -284,7 +284,8 @@ def state(self) -> str | None:
284284
"""Calculate state of the node.
285285
286286
If ``hash = False``, the function returns ``"0"``, a constant hash value, so the
287-
[pytask.PythonNode][] is ignored when checking for a changed state of the task.
287+
[`pytask.PythonNode`][] is ignored when checking for a changed state of the
288+
task.
288289
289290
If ``hash`` is a callable, then use this function to calculate a hash expecting
290291
an integer or string.
@@ -297,8 +298,8 @@ def state(self) -> str | None:
297298
``hash("asd")`` returns a different value every invocation since the hash of
298299
strings is salted with a random integer and it would confuse users. See
299300
[`object.__hash__`](
300-
https://docs.python.org/3/reference/datamodel.html#object.__hash__
301-
) for more information.
301+
https://docs.python.org/3/reference/datamodel.html#object.__hash__ ) for more
302+
information.
302303
303304
"""
304305
if self.value is no_default:

src/_pytask/scheduler.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ def rebuild(self, dag: DAG) -> SimpleScheduler:
107107
def _extract_priorities_from_tasks(tasks: list[PTask]) -> dict[str, int]:
108108
"""Extract priorities from tasks.
109109
110-
Priorities are set via the [pytask.mark.try_first][] and [pytask.mark.try_last][]
111-
markers. We recode these markers to numeric values to sort all available by
112-
priorities. ``try_first`` is assigned the highest value such that it has the
113-
rightmost position in the list. Then, we can simply call `list.pop` on the
114-
list which is far more efficient than ``list.pop(0)``.
110+
Priorities are set via the [`pytask.mark.try_first`][] and
111+
[`pytask.mark.try_last`][] markers. We recode these markers to numeric values to
112+
sort all available by priorities. ``try_first`` is assigned the highest value such
113+
that it has the rightmost position in the list. Then, we can simply call `list.pop`
114+
on the list which is far more efficient than ``list.pop(0)``.
115115
116116
"""
117117
priorities = {

0 commit comments

Comments
 (0)