Skip to content

Commit 513dc57

Browse files
authored
Make mypy happy again (#1314)
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.
1 parent 01d77c4 commit 513dc57

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/neo4j/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ def to_bytes(self) -> bytes:
444444
return bytes(b)
445445

446446
@classmethod
447-
def from_bytes(cls, b: bytes) -> Version:
447+
def from_bytes(cls, b: bytes | bytearray) -> Version:
448448
b = bytearray(b)
449449
if len(b) != 4:
450450
raise ValueError("Byte representation must be exactly four bytes")

0 commit comments

Comments
 (0)