Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions parol6/server/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,11 +650,11 @@ def _process_command(
# Dispatch by category (determined at registration time, no isinstance needed)
match category:
case CommandCategory.QUERY:
self._handle_query(command, state, addr) # type: ignore[arg-type, ty:invalid-argument-type]
self._handle_query(command, state, addr) # type: ignore[arg-type]
case CommandCategory.SYSTEM:
self._handle_system_command(command, state, addr) # type: ignore[arg-type, ty:invalid-argument-type]
self._handle_system_command(command, state, addr) # type: ignore[arg-type]
case CommandCategory.MOTION:
self._handle_motion_command(command, state, addr) # type: ignore[arg-type, ty:invalid-argument-type]
self._handle_motion_command(command, state, addr) # type: ignore[arg-type]

def _handle_motion_command(
self, command: MotionCommand, state: ControllerState, addr: tuple[str, int]
Expand Down
2 changes: 1 addition & 1 deletion parol6/server/motion_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def process(self, params: object, command_index: int = 0) -> list[Segment]:

cmd_class = self._registry.get_command_for_struct(type(params))
if cmd_class is not None and issubclass(cmd_class, self._trajectory_base):
self._handle_trajectory(command_index, params, cmd_class) # type: ignore[invalid-argument-type, ty:invalid-argument-type]
self._handle_trajectory(command_index, params, cmd_class) # type: ignore[invalid-argument-type]
else:
# Tool actions run concurrently with motion — don't flush blend
if not isinstance(params, ToolActionCmd) and self._blend_buffer:
Expand Down
2 changes: 1 addition & 1 deletion parol6/server/transports/serial_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def __init__(
self._r_head = 0
self._r_tail = 0
self._frame_buf = np.zeros(64, dtype=np.uint8)
self._frame_mv = memoryview(self._frame_buf)[:52] # type: ignore[invalid-argument-type, ty:invalid-argument-type]
self._frame_mv = memoryview(self._frame_buf)[:52] # type: ignore[invalid-argument-type]
self._frame_version = 0
self._frame_ts = 0.0

Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@ filterwarnings = [
]

[tool.ty]
# ty 0.0.74 mis-binds ParamSpec *args on numba's Dispatcher.__call__ stub:
# every argument at a jitted call site is compared against the full parameter
# tuple (astral-sh/ty#157 — ParamSpec support is still partial), flooding the
# repo with false invalid-argument-type errors. Ignored until ty handles
# ParamSpec calls; restore to error then.
[tool.ty.rules]
invalid-argument-type = "ignore"

# Dynamic Command union (built at import time from tagged structs)
# generates invalid-type-form in all files that reference it.
[[tool.ty.overrides]]
Expand Down
Loading