Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ See also https://github.com/neo4j/neo4j-python-driver/wiki for a full changelog.
- `connection_acquisition_timeout` configuration option
- `ValueError` on invalid values (instead of `ClientError`)
- Consistently restrict the value to be strictly positive
- Remove deprecated `Record.__getslice__`. This magic method has been removed in Python 3.0.
If you were calling it directly, please use `Record.__getitem__(slice(...))` or simply `record[...]` instead.


## Version 5.28
Expand Down
15 changes: 0 additions & 15 deletions src/neo4j/_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,6 @@

from ._codec.hydration import BrokenHydrationObject
from ._conf import iter_items


if t.TYPE_CHECKING:
from typing_extensions import deprecated
else:
from ._meta import deprecated

from ._spatial import Point
from .exceptions import BrokenRecordError
from .graph import (
Expand Down Expand Up @@ -150,14 +143,6 @@ def __getitem__( # type: ignore[override]
else:
return self._super_getitem_single(index)

# TODO: 6.0 - remove
@deprecated("This method is deprecated and will be removed in the future.")
def __getslice__(self, start, stop): # noqa: PLW3201 will be removed
key = slice(start, stop)
keys = self.__keys[key]
values = tuple(self)[key]
return self.__class__(zip(keys, values, strict=True))

def get(self, key: str, default: object = None) -> t.Any:
"""
Obtain a value from the record by key.
Expand Down