Skip to content

Commit e766a5f

Browse files
authored
Remove unsupported auto-hyperlinking from docstrings (#1425)
* Should only use in the `docs` themselves Signed-off-by: Elliot Gunton <[email protected]>
1 parent f84137e commit e766a5f

File tree

7 files changed

+10
-11
lines changed

7 files changed

+10
-11
lines changed

src/hera/workflows/artifact.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def as_name(self, name: str) -> _ModelArtifact:
153153
"""Returns a 'built' copy of the current artifact, renamed using the specified `name`.
154154
155155
Warning: DEPRECATED
156-
use [with_name][hera.workflows.artifact.Artifact.as_name].
156+
use with_name.
157157
"""
158158
_logger.warning("'as_name' is deprecated, use 'with_name'")
159159
artifact = self._build_artifact()

src/hera/workflows/dag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class DAG(
2828
):
2929
"""A DAG template invocator is used to define Task dependencies as an acyclic graph.
3030
31-
DAG implements the contextmanager interface so allows usage of `with`, under which any [Task][hera.workflows.Task]
31+
DAG implements the contextmanager interface so allows usage of `with`, under which any Task
3232
objects instantiated will be added to the DAG's list of Tasks.
3333
3434
See the [DAG examples](../../../examples/workflows/dags/dag_diamond_with_script.md) for usage.

src/hera/workflows/resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""The `hera.workflows.resources` module provides the [Resources][hera.workflows.resources.Resources] class for setting CPU, memory and other limits."""
1+
"""The `hera.workflows.resources` module provides the Resources class for setting CPU, memory and other limits."""
22

33
from typing import Dict, Optional, Union
44

src/hera/workflows/script.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ class Script(
138138
ResourceMixin,
139139
VolumeMountMixin,
140140
):
141-
"""A Script in Argo Workflows acts as a wrapper around a [Container][hera.workflows.container.Container], where you can specify Python code to run through `source`.
141+
"""A Script in Argo Workflows acts as a wrapper around a Container, where you can specify Python code to run through `source`.
142142
143-
In Hera, you should aim to use the [script decorator][hera.workflows.script.script], rather than the Script class directly.
143+
In Hera, you should aim to use the script decorator, rather than the Script class directly.
144144
You will need to refer to the Script class for the kwargs that the decorator can take, but your IDE should give you code completion and type hints.
145145
"""
146146

@@ -665,7 +665,7 @@ def _add_type_hints(
665665

666666
@_add_type_hints(Script)
667667
def script(**script_kwargs) -> Callable:
668-
"""A decorator that wraps a function into a [Script][hera.workflows.script.Script] object.
668+
"""A decorator that wraps a function into a Script object.
669669
670670
Using this decorator users can define a function that will be executed as a script in a container. Once the
671671
`Script` is returned users can use it as they generally use a `Script` e.g. as a callable inside a DAG or Steps.

src/hera/workflows/steps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __exit__(self, *_):
3636

3737

3838
def parallel():
39-
"""Open a parallel context within a [steps-decorator function][hera.workflows.workflow.Workflow.steps].
39+
"""Open a parallel context within a steps-decorator function.
4040
4141
When running locally, the context will be a no-op.
4242
"""
@@ -100,7 +100,7 @@ class Parallel(
100100
ContextMixin,
101101
SubNodeMixin,
102102
):
103-
"""Parallel is a context manager used to create a list of [steps][hera.workflows.steps.Step] to run in parallel.
103+
"""Parallel is a context manager used to create a list of steps to run in parallel.
104104
105105
Parallel implements the context manager interface so allows usage of `with`, under which any
106106
`hera.workflows.steps.Step` objects instantiated will be added to Parallel's list of sub_steps.

src/hera/workflows/template_set.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""The `hera.workflows.template_set` module provides the TemplateSet class.
22
3-
The `TemplateSet` class lets you create a collection of templates unattached to a [Workflow][hera.workflows.workflow.Workflow].
3+
The `TemplateSet` class lets you create a collection of templates unattached to a Workflow.
44
55
Warning:
66
This class is only for use with experimental Workflow decorators. [Read the guide here](../../../user-guides/decorators.md).

src/hera/workflows/user_container.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""The `hera.workflows.user_container` module provides user container functionality and objects.
22
3-
[UserContainers][hera.workflows.user_container.UserContainer] are used as side containers, so they can run background
4-
processes required for the main container.
3+
UserContainers are used as side containers, so they can run background processes required for the main container.
54
"""
65

76
from typing import List, Optional, Union, cast

0 commit comments

Comments
 (0)