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")