Skip to content

Commit f81b588

Browse files
committed
fix: add abstract new native from bytes to base quadtree
1 parent 7cccb9e commit f81b588

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pysrc/fastquadtree/_base_quadtree.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ class _BaseQuadTree(Generic[G, HitT, ItemType], ABC):
5959
def _new_native(self, bounds: Bounds, capacity: int, max_depth: int | None) -> Any:
6060
"""Create the native engine instance."""
6161

62+
@classmethod
63+
def _new_native_from_bytes(cls, data: bytes) -> Any:
64+
"""Create the native engine instance from serialized bytes."""
65+
6266
@staticmethod
6367
@abstractmethod
6468
def _make_item(id_: int, geom: G, obj: Any | None) -> ItemType:

0 commit comments

Comments
 (0)