Skip to content

Commit

Permalink
More udev fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aMarcireau committed Sep 29, 2023
1 parent 5f815b9 commit b43e320
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "python"
version = "0.8.1"
version = "0.8.2"
edition = "2021"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ authors = [
{name = "International Centre for Neuromorphic Systems"},
{name = "Alexandre Marcireau"},
]
version = "0.8.1"
version = "0.8.2"
requires-python = ">=3.8"
dependencies = ["numpy>=1.24"]

Expand Down
2 changes: 2 additions & 0 deletions python/python/neuromorphic_drivers/mask.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import pathlib
import struct
import typing
Expand Down
8 changes: 6 additions & 2 deletions python/python/neuromorphic_drivers/serde/bincode.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import io
import struct
import typing
Expand Down Expand Up @@ -55,7 +57,9 @@ def deserialize_variant_index(self) -> int:
return int.from_bytes(self.read(4), byteorder="little", signed=False)

def check_that_key_slices_are_increasing(
self, slice1: typing.Tuple[int, int], slice2: typing.Tuple[int, int]
self,
slice1: tuple[int, int],
slice2: tuple[int, int],
):
pass

Expand All @@ -66,7 +70,7 @@ def serialize(obj: typing.Any, obj_type) -> bytes:
return serializer.get_buffer()


def deserialize(content: bytes, obj_type) -> typing.Tuple[typing.Any, bytes]:
def deserialize(content: bytes, obj_type) -> tuple[typing.Any, bytes]:
deserializer = BincodeDeserializer(content)
value = deserializer.deserialize_any(obj_type)
return value, deserializer.get_remaining_buffer()

0 comments on commit b43e320

Please sign in to comment.