Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Nov 22, 2024
1 parent 2c0948f commit 3a88318
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/aiida/common/pydantic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/aiida/orm/nodes/data/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3a88318

Please sign in to comment.