From 92cd732618ab9f0a1378a03cc85bb8d3f934d51e Mon Sep 17 00:00:00 2001 From: Robsdedude Date: Fri, 5 Jun 2026 15:39:01 +0200 Subject: [PATCH] Make mypy happy again This method is public-ish, i.e., reachable without accessing any `_xyz`, but it's undocumented. The driver stopped using it a while ago. This change is just to please the type-checker. --- src/neo4j/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/neo4j/api.py b/src/neo4j/api.py index ce9bcbe5d..53dad1fc5 100644 --- a/src/neo4j/api.py +++ b/src/neo4j/api.py @@ -444,7 +444,7 @@ def to_bytes(self) -> bytes: return bytes(b) @classmethod - def from_bytes(cls, b: bytes) -> Version: + def from_bytes(cls, b: bytes | bytearray) -> Version: b = bytearray(b) if len(b) != 4: raise ValueError("Byte representation must be exactly four bytes")