Skip to content

Commit

Permalink
chore: Remove more-itertools dependency
Browse files Browse the repository at this point in the history
Python >= 3.12 includes this iterator in the stdlib. Let's wait until
Python 3.13 is released before merging.
  • Loading branch information
rumpelsepp committed Nov 28, 2024
1 parent 780e5ad commit 6aad7f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ dependencies = [
"argcomplete >=2,<4",
"boltons>=24.1.0",
"construct >=2.10,<3.0",
"more-itertools >=10.3.0,<11.0.0",
"platformdirs >=2.6,<5.0",
"pydantic >=2.0,<3.0",
"tabulate >=0.9",
Expand Down
6 changes: 3 additions & 3 deletions src/gallia/transports/flexray_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import asyncio
import sys
from enum import IntEnum, unique
from itertools import batched
from typing import ClassVar, Self, TypeAlias

from more_itertools import chunked
from pydantic import BaseModel, ConfigDict, field_validator

from gallia.log import get_logger
Expand Down Expand Up @@ -371,10 +371,10 @@ async def write_unsafe(
# Maybe a further flow control comes after block size number of frames.

counter = 1
for chunk in chunked(data[6:], 7):
for batch in batched(data[6:], 7):
cf_frame = FlexRayTPConsecutiveFrame(
counter=counter,
data=bytes(chunk),
data=bytes(batch),
)

await self.write_tp_frame(cf_frame)
Expand Down
11 changes: 0 additions & 11 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6aad7f6

Please sign in to comment.