diff --git a/src/aiida/common/pydantic.py b/src/aiida/common/pydantic.py index 4973a44bdf..2fa3d2bd68 100644 --- a/src/aiida/common/pydantic.py +++ b/src/aiida/common/pydantic.py @@ -14,7 +14,7 @@ def MetadataField( # noqa: N802 short_name: str | None = None, option_cls: t.Any | None = None, **kwargs, -) -> t.Any | None: +): """Return a :class:`pydantic.fields.Field` instance with additional metadata. .. code-block:: python diff --git a/src/aiida/orm/nodes/data/list.py b/src/aiida/orm/nodes/data/list.py index 44a14af0ca..d2c0857b35 100644 --- a/src/aiida/orm/nodes/data/list.py +++ b/src/aiida/orm/nodes/data/list.py @@ -82,7 +82,7 @@ def remove(self, value): self.set_list(data) return item - def pop(self, index: int = 0) -> Any: + def pop(self, index: int = -1) -> Any: """Remove and return item at index (default last).""" data = self.get_list() item = data.pop(index)