From cd230febd62ec00fdadbc206d79548d46a00e54a Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sat, 28 Nov 2026 12:57:26 -0800 Subject: [PATCH] bump ty to 0.0.112 and fix the type errors it finds (#39506) * fix ty 0.0.112 errors outside the ui * bump ty to 0.0.112, drop its ignores * ty: cleaner fixes --- openpilot/common/esim/lpa.py | 3 ++ openpilot/common/spinner.py | 2 +- openpilot/common/swaglog.py | 3 +- openpilot/common/test.py | 2 + openpilot/selfdrive/car/card.py | 1 + .../selfdrive/car/tests/test_cruise_speed.py | 5 +++ openpilot/selfdrive/controls/controlsd.py | 2 +- .../controls/tests/test_following_distance.py | 3 ++ openpilot/selfdrive/modeld/modeld.py | 13 +++++-- openpilot/selfdrive/navigation/navd.py | 2 +- .../navigation/tests/test_navigation.py | 14 ++++++- openpilot/selfdrive/test/helpers.py | 7 ++-- .../test/process_replay/migration.py | 11 +++--- .../test/process_replay/process_replay.py | 6 ++- openpilot/selfdrive/test/test_onroad.py | 7 ++-- .../selfdrive/ui/tests/profile_onroad.py | 2 +- openpilot/system/athena/athenad.py | 1 + openpilot/system/athena/rpc.py | 2 +- openpilot/system/athena/tests/test_athenad.py | 3 +- .../loggerd/tests/loggerd_tests_common.py | 5 ++- .../system/loggerd/tests/test_deleter.py | 3 +- .../system/loggerd/tests/test_loggerd.py | 1 + openpilot/system/manager/process.py | 11 +++--- openpilot/system/manager/process_config.py | 2 +- openpilot/system/ubloxd/binary_struct.py | 17 +++------ openpilot/system/ubloxd/ubloxd.py | 8 ++-- openpilot/system/webrtc/device/messaging.py | 2 +- openpilot/system/webrtc/device/video.py | 1 + openpilot/system/webrtc/webrtcd.py | 5 ++- .../lateral_maneuvers/lateral_maneuversd.py | 2 + openpilot/tools/lib/api.py | 2 +- openpilot/tools/lib/auth.py | 1 + openpilot/tools/lib/logreader.py | 2 +- .../tools/plotjuggler/test_plotjuggler.py | 1 + openpilot/tools/replay/lib/ui_helpers.py | 3 +- openpilot/tools/sim/tests/test_sim_bridge.py | 5 ++- pyproject.toml | 11 ++++-- rednose_repo | 2 +- uv.lock | 38 +++++++++---------- 39 files changed, 130 insertions(+), 81 deletions(-) diff --git a/openpilot/common/esim/lpa.py b/openpilot/common/esim/lpa.py index 600869fcb7..70bbdad6ba 100644 --- a/openpilot/common/esim/lpa.py +++ b/openpilot/common/esim/lpa.py @@ -137,6 +137,7 @@ class AtClient: def send_raw(self, data: bytes) -> None: self._ensure_serial() + assert self._serial is not None self._serial.reset_input_buffer() self._serial.write(data) self._serial.flush() @@ -156,9 +157,11 @@ class AtClient: def _send(self, cmd: str) -> None: if DEBUG: print(f"SER >> {cmd}", file=sys.stderr) + assert self._serial is not None self._serial.write((cmd + "\r").encode("ascii")) def _expect(self) -> list[str]: + assert self._serial is not None lines: list[str] = [] while True: raw = self._serial.readline() diff --git a/openpilot/common/spinner.py b/openpilot/common/spinner.py index 0c5dafad42..e8260b01c0 100755 --- a/openpilot/common/spinner.py +++ b/openpilot/common/spinner.py @@ -17,7 +17,7 @@ class Spinner: return self def update(self, spinner_text: str): - if self.spinner_proc is not None: + if self.spinner_proc is not None and self.spinner_proc.stdin is not None: self.spinner_proc.stdin.write(spinner_text.encode('utf8') + b"\n") try: self.spinner_proc.stdin.flush() diff --git a/openpilot/common/swaglog.py b/openpilot/common/swaglog.py index 8f5e07d7c1..585b7644ad 100644 --- a/openpilot/common/swaglog.py +++ b/openpilot/common/swaglog.py @@ -49,7 +49,7 @@ class SwaglogRotatingFileHandler(BaseRotatingHandler): return sorted(log_files, reverse=True) def shouldRollover(self, record): - size_exceeded = self.max_bytes > 0 and self.stream.tell() >= self.max_bytes + size_exceeded = self.max_bytes > 0 and self.stream is not None and self.stream.tell() >= self.max_bytes time_exceeded = self.interval > 0 and self.last_rollover + self.interval <= time.monotonic() return size_exceeded or time_exceeded @@ -91,6 +91,7 @@ class UnixDomainSocketHandler(logging.Handler): self.connect() msg = self.format(record).rstrip('\n') + assert self.sock is not None try: self.sock.sendto((chr(record.levelno)+msg).encode('utf8'), Paths.swaglog_ipc()) except OSError: diff --git a/openpilot/common/test.py b/openpilot/common/test.py index 23b934bfd5..6bc31500d2 100644 --- a/openpilot/common/test.py +++ b/openpilot/common/test.py @@ -4,6 +4,7 @@ import inspect import os import subprocess import unittest +from collections.abc import Callable from unittest import mock from openpilot.common.hardware import HARDWARE, COMMA_HARDWARE @@ -26,6 +27,7 @@ class OpenpilotTestCase(unittest.TestCase): COMMA_HARDWARE_TEST = False SHARED_DOWNLOAD_CACHE = False + openpilot_setup_method: Callable[[], None] # a subclass's setup_method, moved here by __init_subclass__ def __init_subclass__(cls, **kwargs): super().__init_subclass__(**kwargs) diff --git a/openpilot/selfdrive/car/card.py b/openpilot/selfdrive/car/card.py index 734102a2d9..cefc255dcf 100755 --- a/openpilot/selfdrive/car/card.py +++ b/openpilot/selfdrive/car/card.py @@ -105,6 +105,7 @@ class Car: # continue onto next fingerprinting step in pandad self.params.put_bool("FirmwareQueryDone", True, block=True) else: + assert RI is not None self.CI, self.CP = CI, CI.CP self.RI = RI diff --git a/openpilot/selfdrive/car/tests/test_cruise_speed.py b/openpilot/selfdrive/car/tests/test_cruise_speed.py index b25de15466..3abd1f99d7 100644 --- a/openpilot/selfdrive/car/tests/test_cruise_speed.py +++ b/openpilot/selfdrive/car/tests/test_cruise_speed.py @@ -34,6 +34,9 @@ def run_cruise_simulation(cruise, personality, t_end=20.): log.LongitudinalPersonality.schema.enumerants, # personality [5,35])) # speed class TestCruiseSpeed(OpenpilotTestCase): + personality: str + speed: int + def test_cruise_speed(self): print(f'Testing {self.speed} m/s') cruise_speed = float(self.speed) @@ -45,6 +48,8 @@ class TestCruiseSpeed(OpenpilotTestCase): # TODO: test pcmCruise @parameterized_class(('pcm_cruise',), [(False,)]) class TestVCruiseHelper(OpenpilotTestCase): + pcm_cruise: bool + def setup_method(self): self.CP = car.CarParams(pcmCruise=self.pcm_cruise) self.v_cruise_helper = VCruiseHelper(self.CP) diff --git a/openpilot/selfdrive/controls/controlsd.py b/openpilot/selfdrive/controls/controlsd.py index aef92fb7ab..0e5d410abb 100755 --- a/openpilot/selfdrive/controls/controlsd.py +++ b/openpilot/selfdrive/controls/controlsd.py @@ -83,7 +83,7 @@ class Controls: self.curvature = -self.VM.calc_curvature(steer_angle_without_offset, CS.vEgo, lp.roll) # Update Torque Params - if self.CP.lateralTuning.which() == 'torque': + if isinstance(self.LaC, LatControlTorque): torque_params = self.sm['lateralTorqueParameters'] if self.sm.all_checks(['lateralTorqueParameters']) and torque_params.useParams: self.LaC.update_torque_parameters(torque_params.latAccelFactorFiltered, torque_params.latAccelOffsetFiltered, diff --git a/openpilot/selfdrive/controls/tests/test_following_distance.py b/openpilot/selfdrive/controls/tests/test_following_distance.py index ccae879692..804c405561 100644 --- a/openpilot/selfdrive/controls/tests/test_following_distance.py +++ b/openpilot/selfdrive/controls/tests/test_following_distance.py @@ -35,6 +35,9 @@ def run_following_distance_simulation(v_lead, t_end=100.0, personality=0): log.LongitudinalPersonality.aggressive], [0,10,35])) # speed class TestFollowingDistance(OpenpilotTestCase): + personality: int + speed: int + def test_following_distance(self): v_lead = float(self.speed) simulation_steady_state = run_following_distance_simulation(v_lead, personality=self.personality) diff --git a/openpilot/selfdrive/modeld/modeld.py b/openpilot/selfdrive/modeld/modeld.py index d4ade07c3d..f31203e2ee 100755 --- a/openpilot/selfdrive/modeld/modeld.py +++ b/openpilot/selfdrive/modeld/modeld.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 from collections.abc import Callable, Mapping +from typing import TYPE_CHECKING, cast import base64 import ctypes import gc @@ -14,6 +15,8 @@ from tinygrad.codegen.compile import lower_and_compile from tinygrad.tensor import Tensor from tinygrad.helpers import round_up from tinygrad.uop.ops import UOp +if TYPE_CHECKING: + from tinygrad.runtime.ops_amd import AMDDevice import math import pickle import threading @@ -89,7 +92,7 @@ class ChestnutGpuState: @cached_property def power_limit(self) -> int: - smu = Device["AMD"].iface.dev_impl.smu + smu = cast("AMDDevice", Device["AMD"]).iface.dev_impl.smu return smu._send_msg(smu.smu_mod.PPSMC_MSG_GetPptLimit, 0, read_back_arg=True, timeout=100) def send(self) -> None: @@ -98,7 +101,7 @@ class ChestnutGpuState: self.sends += 1 if self.big and "AMD" in Device._opened_devices and self.sends % 100 == 1: try: - smu = Device["AMD"].iface.dev_impl.smu + smu = cast("AMDDevice", Device["AMD"]).iface.dev_impl.smu metrics_t = smu.smu_mod.SmuMetricsExternal_t smu._send_msg(smu.smu_mod.PPSMC_MSG_TransferTableSmu2Dram, smu.smu_mod.TABLE_SMU_METRICS, timeout=100) metrics_buf = bytearray(smu.adev.vram.view(smu.driver_table_paddr, ctypes.sizeof(metrics_t))[:]) @@ -170,7 +173,7 @@ class ModelState: self.outputs = {name: Tensor(np.zeros(shape, dtype=dtype), device=device).realize() for name, (shape, dtype, device) in jits['output_specs'].items()} for name, next_name in self.state_pairs.items(): state = self.input_queues[name] - self.outputs[next_name] = input_view(state._buffer(), state.shape, state.dtype, 0) + self.outputs[next_name] = input_view(state._buffer(), self.input_shapes[name][0], state.dtype, 0) self.copy_outputs = compile_copy(self.outputs['outputs'].to('CPU')) self.parser = Parser() @@ -215,7 +218,7 @@ class ModelState: self.copy_inputs() self.input_queues['new_img'] = self.run_warp(**self.warp_inputs) self.run_model(output_buffers=self.outputs, **self.input_queues) - if self.chestnut and (err := Device[self.outputs['outputs'].device].error_state.host.view(fmt='q')[0]): + if self.chestnut and (err := Device[cast(str, self.outputs['outputs'].device)].error_state.host.view(fmt='q')[0]): raise RuntimeError(f"chestnut failed with {err}") if after_enqueue is not None: after_enqueue() @@ -307,6 +310,7 @@ def main(demo=False): small_model = ModelState(cam_w, cam_h, False) if model is None or CHESTNUT else None if model is None: model = small_model + assert model is not None params.put_bool("ChestnutLoading", False) cloudlog.warning(f"models loaded in {time.monotonic() - st:.1f}s, modeld starting") @@ -438,6 +442,7 @@ def main(demo=False): cloudlog.exception("big model failed, fall back to small") params.put_bool("ChestnutActive", False) model = small_model + assert model is not None if chestnut_state is not None: chestnut_state.big = False run_count = 0 diff --git a/openpilot/selfdrive/navigation/navd.py b/openpilot/selfdrive/navigation/navd.py index a33c42558c..b8d56ad9d0 100755 --- a/openpilot/selfdrive/navigation/navd.py +++ b/openpilot/selfdrive/navigation/navd.py @@ -102,7 +102,7 @@ class RouteEngine: lang = lang.replace('main_', '') token = self.mapbox_token - if token is None: + if self.api is not None: token = self.api.get_token() params = { diff --git a/openpilot/selfdrive/navigation/tests/test_navigation.py b/openpilot/selfdrive/navigation/tests/test_navigation.py index 4db576018d..30dd895ba5 100644 --- a/openpilot/selfdrive/navigation/tests/test_navigation.py +++ b/openpilot/selfdrive/navigation/tests/test_navigation.py @@ -98,8 +98,16 @@ def route_engine(sm, pm, values): return RouteEngine(sm, pm, params=params) +class RangeServer(ThreadingHTTPServer): + archive: bytes + etag: str + ignore_range: bool + requests: list[dict[str, str]] + + class RangeHandler(BaseHTTPRequestHandler): def do_GET(self): + assert isinstance(self.server, RangeServer) self.server.requests.append(dict(self.headers)) if self.headers.get('If-Match', self.server.etag) != self.server.etag: self.send_error(412) @@ -108,7 +116,9 @@ class RangeHandler(BaseHTTPRequestHandler): self.send_response(200) self.end_headers() return - offset, end = map(int, re.fullmatch(r'bytes=(\d+)-(\d+)', self.headers['Range']).groups()) + m = re.fullmatch(r'bytes=(\d+)-(\d+)', self.headers['Range']) + assert m is not None + offset, end = map(int, m.groups()) data = self.server.archive[offset:end + 1] self.send_response(206) self.send_header('Content-Range', f'bytes {offset}-{end}/{len(self.server.archive)}') @@ -128,7 +138,7 @@ class TileServerCase(unittest.TestCase): self.directory = tempfile.TemporaryDirectory() self.addCleanup(self.directory.cleanup) self.cache = Path(self.directory.name) / 'navigation' / 'tiles' - self.server = ThreadingHTTPServer(('127.0.0.1', 0), RangeHandler) + self.server = RangeServer(('127.0.0.1', 0), RangeHandler) self.server.archive = make_archive(leaf=True) self.server.etag = '"test-version"' self.server.ignore_range = False diff --git a/openpilot/selfdrive/test/helpers.py b/openpilot/selfdrive/test/helpers.py index e27bdb09e3..1f0208eaaa 100644 --- a/openpilot/selfdrive/test/helpers.py +++ b/openpilot/selfdrive/test/helpers.py @@ -83,12 +83,13 @@ def processes_context(processes, init_time=0, ignore_stopped=None): if n < len(processes) - 1: time.sleep(init_time) - assert all(managed_processes[name].proc.exitcode is None for name in processes) + procs = [managed_processes[name] for name in processes] + assert all(p.proc is not None and p.proc.exitcode is None for p in procs) try: - yield [managed_processes[name] for name in processes] + yield procs # assert processes are still started - assert all(managed_processes[name].proc.exitcode is None for name in processes if name not in ignore_stopped) + assert all(p.proc is not None and p.proc.exitcode is None for p in procs if p.name not in ignore_stopped) finally: for p in processes: managed_processes[p].stop() diff --git a/openpilot/selfdrive/test/process_replay/migration.py b/openpilot/selfdrive/test/process_replay/migration.py index 1e59d39645..3278cc9719 100644 --- a/openpilot/selfdrive/test/process_replay/migration.py +++ b/openpilot/selfdrive/test/process_replay/migration.py @@ -10,7 +10,7 @@ import argparse from openpilot.cereal import messaging, log from opendbc.car.structs import car from opendbc.car.fingerprints import MIGRATION -from opendbc.car.toyota.values import EPS_SCALE, ToyotaSafetyFlags +from opendbc.car.toyota.values import CAR as TOYOTA, EPS_SCALE, ToyotaSafetyFlags from opendbc.car.ford.values import CAR as FORD, FordFlags, FordSafetyFlags from opendbc.car.hyundai.values import HyundaiSafetyFlags from opendbc.car.gm.values import GMSafetyFlags @@ -99,8 +99,7 @@ def migration(inputs: list[str], product: str|None=None): @functools.wraps(func) def wrapper(*args, **kwargs): return func(*args, **kwargs) - wrapper.inputs = inputs - wrapper.product = product + vars(wrapper).update(inputs=inputs, product=product) return wrapper return decorator @@ -307,8 +306,8 @@ def migrate_carOutput(msgs): def migrate_pandaStates(msgs): # TODO: safety param migration should be handled automatically safety_param_migration = { - "TOYOTA_PRIUS": EPS_SCALE["TOYOTA_PRIUS"] | ToyotaSafetyFlags.STOCK_LONGITUDINAL, - "TOYOTA_RAV4": EPS_SCALE["TOYOTA_RAV4"] | ToyotaSafetyFlags.ALT_BRAKE, + "TOYOTA_PRIUS": EPS_SCALE[TOYOTA.TOYOTA_PRIUS] | ToyotaSafetyFlags.STOCK_LONGITUDINAL, + "TOYOTA_RAV4": EPS_SCALE[TOYOTA.TOYOTA_RAV4] | ToyotaSafetyFlags.ALT_BRAKE, "KIA_EV6": HyundaiSafetyFlags.EV_GAS | HyundaiSafetyFlags.CANFD_LKA_STEER_MSG, "CHEVROLET_VOLT": GMSafetyFlags.EV, "CHEVROLET_BOLT_EUV": GMSafetyFlags.EV | GMSafetyFlags.HW_CAM, @@ -321,7 +320,7 @@ def migrate_pandaStates(msgs): assert CP is not None, "carParams message not found" fingerprint = MIGRATION.get(CP.carFingerprint, CP.carFingerprint) if fingerprint in safety_param_migration: - safety_param = safety_param_migration[fingerprint].value + safety_param = int(safety_param_migration[fingerprint]) elif len(CP.safetyConfigs): safety_param = CP.safetyConfigs[0].safetyParam if CP.safetyConfigs[0].deprecated.safetyParam != 0: diff --git a/openpilot/selfdrive/test/process_replay/process_replay.py b/openpilot/selfdrive/test/process_replay/process_replay.py index 0758472fe3..b1bd073738 100755 --- a/openpilot/selfdrive/test/process_replay/process_replay.py +++ b/openpilot/selfdrive/test/process_replay/process_replay.py @@ -25,6 +25,7 @@ from openpilot.common.prefix import OpenpilotPrefix from openpilot.common.timeout import Timeout from openpilot.system.camerad.cameras.nv12_info import get_nv12_info from openpilot.system.manager.process_config import managed_processes +from openpilot.system.manager.process import NativeProcess, PythonProcess from openpilot.selfdrive.test.process_replay.vision_meta import meta_from_camera_state, available_streams from openpilot.selfdrive.test.process_replay.capture import ProcessOutputCapture from openpilot.tools.lib.logreader import LogIterable @@ -165,6 +166,7 @@ class ProcessContainer: return self.cfg.subs def _clean_env(self): + assert self.environ_config is not None for k in self.environ_config.keys(): if k in os.environ: del os.environ[k] @@ -214,7 +216,8 @@ class ProcessContainer: def _start_process(self): if self.capture is not None: - self.process.launcher = LauncherWithCapture(self.capture, self.process.launcher) # ty: ignore[invalid-assignment] # intentional wrapper + assert isinstance(self.process, NativeProcess | PythonProcess) + self.process.launcher = LauncherWithCapture(self.capture, self.process.launcher) self.process.start() def start( @@ -253,6 +256,7 @@ class ProcessContainer: with self.prefix: self.process.signal(signal.SIGKILL) self.process.stop() + assert self.rc is not None self.rc.close_context() self.prefix.clean_dirs() self._clean_env() diff --git a/openpilot/selfdrive/test/test_onroad.py b/openpilot/selfdrive/test/test_onroad.py index 61eeb43d3e..ea756ffe3a 100755 --- a/openpilot/selfdrive/test/test_onroad.py +++ b/openpilot/selfdrive/test/test_onroad.py @@ -21,7 +21,7 @@ from openpilot.cereal.services import SERVICE_LIST from openpilot.common.basedir import BASEDIR from openpilot.common.timeout import Timeout from openpilot.common.params import Params -from openpilot.selfdrive.selfdrived.events import EVENTS, ET +from openpilot.selfdrive.selfdrived.events import EVENTS, ET, Alert from openpilot.selfdrive.test.helpers import set_params_enabled, release_only, processes_context, log_collector from openpilot.common.hardware import HARDWARE from openpilot.common.hardware.hw import Paths @@ -453,8 +453,9 @@ class TestOnroad(OpenpilotTestCase): @unittest.skipIf(HARDWARE.get_device_type() == "mici", "mici has no startup alert") def test_startup(self): startup_alert = self.ts['selfdriveState']['alertText1'][0] - expected = EVENTS[log.OnroadEvent.EventName.startup][ET.PERMANENT].alert_text_1 - assert startup_alert == expected, "wrong startup alert" + expected = EVENTS[log.OnroadEvent.EventName.startup][ET.PERMANENT] + assert isinstance(expected, Alert) + assert startup_alert == expected.alert_text_1, "wrong startup alert" def test_engagable(self): no_entries = Counter() diff --git a/openpilot/selfdrive/ui/tests/profile_onroad.py b/openpilot/selfdrive/ui/tests/profile_onroad.py index f60d70da66..5576ab0b5f 100755 --- a/openpilot/selfdrive/ui/tests/profile_onroad.py +++ b/openpilot/selfdrive/ui/tests/profile_onroad.py @@ -50,7 +50,7 @@ def patch_submaster(message_chunks): sm.recv_frame[service] = sm.frame sm.valid[service] = True sm.frame += 1 - ui_state.sm.update = mock_update # ty: ignore[invalid-assignment] # profiling hook + ui_state.sm.update = mock_update if __name__ == "__main__": diff --git a/openpilot/system/athena/athenad.py b/openpilot/system/athena/athenad.py index 8b5df53704..f7b4759ed1 100755 --- a/openpilot/system/athena/athenad.py +++ b/openpilot/system/athena/athenad.py @@ -791,6 +791,7 @@ def startLocalProxy(remote_ws_uri: str, local_port: int) -> dict[str, int]: enable_multithread=True) # Set TOS to keep connection responsive while under load. + assert ws.sock is not None ws.sock.setsockopt(socket.IPPROTO_IP, socket.IP_TOS, SSH_TOS) ssock, csock = socket.socketpair() diff --git a/openpilot/system/athena/rpc.py b/openpilot/system/athena/rpc.py index c4de2b7f99..aaf845eaa5 100644 --- a/openpilot/system/athena/rpc.py +++ b/openpilot/system/athena/rpc.py @@ -61,7 +61,7 @@ class Dispatcher(dict[str, Callable[..., Any]]): def add_method(self, f: Callable[..., Any] | None = None, *, name: str | None = None, **validators: Validator): def decorator(fn: Callable[..., Any]) -> Callable[..., Any]: - method = name or fn.__name__ + method = name or getattr(fn, '__name__', repr(fn)) sig = inspect.signature(fn) if set(sig.parameters) != set(validators): raise TypeError(f"{method}: params {sorted(sig.parameters)} need exactly one validator each, got {sorted(validators)}") diff --git a/openpilot/system/athena/tests/test_athenad.py b/openpilot/system/athena/tests/test_athenad.py index 6b40ba427b..d1bc7e142a 100644 --- a/openpilot/system/athena/tests/test_athenad.py +++ b/openpilot/system/athena/tests/test_athenad.py @@ -9,6 +9,7 @@ import threading import queue from dataclasses import asdict, replace from datetime import datetime, timedelta +from unittest import mock from websocket import ABNF from websocket._exceptions import WebSocketConnectionClosedException @@ -60,7 +61,7 @@ def host(): class TestAthenadMethods(OpenpilotTestCase): def setup_method(self): - athenad.Api = MockApi # ty: ignore[invalid-assignment] # test double + self.enterContext(mock.patch.object(athenad, "Api", MockApi)) self.default_params = { "DongleId": "0000000000000000", "GithubSshKeys": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC307aE+nuHzTAgaJhzSf5v7ZZQW9gaperjhCmyPyl4PzY7T1mDGenTlVTN7yoVFZ9UfO9oMQqo0n1OwDIiqbIFxqnhrHU0cYfj88rI85m5BEKlNu5RdaVTj1tcbaPpQc5kZEolaI1nDDjzV0lwS7jo5VYDHseiJHlik3HH1SgtdtsuamGR2T80q1SyW+5rHoMOJG73IH2553NnWuikKiuikGHUYBd00K1ilVAK2xSiMWJp55tQfZ0ecr9QjEsJ+J/efL4HqGNXhffxvypCXvbUYAFSddOwXUPo5BTKevpxMtH+2YrkpSjocWA04VnTYFiPG6U4ItKmbLOTFZtPzoez private", # noqa: E501 diff --git a/openpilot/system/loggerd/tests/loggerd_tests_common.py b/openpilot/system/loggerd/tests/loggerd_tests_common.py index 689d2c27c0..a3040cc865 100644 --- a/openpilot/system/loggerd/tests/loggerd_tests_common.py +++ b/openpilot/system/loggerd/tests/loggerd_tests_common.py @@ -1,6 +1,7 @@ import os import random from pathlib import Path +from unittest import mock from openpilot.common.test import OpenpilotTestCase @@ -64,10 +65,10 @@ class UploaderTestCase(OpenpilotTestCase): seg_dir: str def set_ignore(self): - uploader.Api = MockApiIgnore # ty: ignore[invalid-assignment] # test double + self.enterContext(mock.patch.object(uploader, "Api", MockApiIgnore)) def setup_method(self): - uploader.Api = MockApi # ty: ignore[invalid-assignment] # test double + self.enterContext(mock.patch.object(uploader, "Api", MockApi)) uploader.fake_upload = True uploader.force_wifi = True uploader.allow_sleep = False diff --git a/openpilot/system/loggerd/tests/test_deleter.py b/openpilot/system/loggerd/tests/test_deleter.py index 6fe1b22579..d38adaec46 100644 --- a/openpilot/system/loggerd/tests/test_deleter.py +++ b/openpilot/system/loggerd/tests/test_deleter.py @@ -1,6 +1,7 @@ from collections import namedtuple from pathlib import Path from collections.abc import Sequence +from unittest import mock import openpilot.system.loggerd.deleter as deleter from openpilot.system.loggerd.tests.loggerd_tests_common import UploaderTestCase @@ -21,7 +22,7 @@ class TestDeleter(UploaderTestCase): self.f_type = "fcamera.hevc" super().openpilot_setup_method() self.fake_stats = Stats(f_bavail=0, f_blocks=10, f_frsize=4096) - deleter.os.statvfs = self.fake_statvfs # ty: ignore[invalid-assignment] # test double + self.enterContext(mock.patch.object(deleter.os, "statvfs", self.fake_statvfs)) def test_delete(self): f_path = self.make_file_with_data(self.seg_dir, self.f_type) diff --git a/openpilot/system/loggerd/tests/test_loggerd.py b/openpilot/system/loggerd/tests/test_loggerd.py index 1be86f13f6..414d68e0f1 100644 --- a/openpilot/system/loggerd/tests/test_loggerd.py +++ b/openpilot/system/loggerd/tests/test_loggerd.py @@ -251,6 +251,7 @@ class TestLoggerd(OpenpilotTestCase): # next one should increment by one bl1 = re.match(RE.LOG_ID_V2, bootlog_path.name) bl2 = re.match(RE.LOG_ID_V2, self._gen_bootlog().name) + assert bl1 is not None and bl2 is not None assert bl1.group('uid') != bl2.group('uid') assert int(bl1.group('count')) == 0 and int(bl2.group('count')) == 1 diff --git a/openpilot/system/manager/process.py b/openpilot/system/manager/process.py index f7dcb66fb8..07e5018ffd 100644 --- a/openpilot/system/manager/process.py +++ b/openpilot/system/manager/process.py @@ -125,6 +125,8 @@ class ManagerProcess(ABC): class NativeProcess(ManagerProcess): + launcher: Callable[..., None] + def __init__(self, name, cwd, cmdline, should_run, enabled=True): self.name = name self.cwd = cwd @@ -149,6 +151,8 @@ class NativeProcess(ManagerProcess): class PythonProcess(ManagerProcess): + launcher: Callable[..., None] + def __init__(self, name, module, should_run, enabled=True): self.name = name self.module = module @@ -173,16 +177,13 @@ class PythonProcess(ManagerProcess): class DaemonProcess(ManagerProcess): """Python process that has to stay running across manager restart. This is used for athena so you don't lose SSH access when restarting manager.""" - def __init__(self, name, module, param_name, enabled=True): + def __init__(self, name, module, param_name, should_run, enabled=True): self.name = name self.module = module self.param_name = param_name self.enabled = enabled self.params = None - - @staticmethod - def should_run(started, params, CP): - return True + self.should_run = should_run def start(self) -> None: if self.params is None: diff --git a/openpilot/system/manager/process_config.py b/openpilot/system/manager/process_config.py index cbe8b6d672..c9c514fd8f 100644 --- a/openpilot/system/manager/process_config.py +++ b/openpilot/system/manager/process_config.py @@ -71,7 +71,7 @@ def and_(*fns): return lambda *args: operator.and_(*(fn(*args) for fn in fns)) procs = [ - DaemonProcess("manage_athenad", "openpilot.system.athena.manage_athenad", "AthenadPid"), + DaemonProcess("manage_athenad", "openpilot.system.athena.manage_athenad", "AthenadPid", always_run), NativeProcess("loggerd", "openpilot/system/loggerd", ["./loggerd"], logging), NativeProcess("encoderd", "openpilot/system/loggerd", ["./encoderd"], only_onroad), diff --git a/openpilot/system/ubloxd/binary_struct.py b/openpilot/system/ubloxd/binary_struct.py index 5bc05094f3..d31a5cdb14 100644 --- a/openpilot/system/ubloxd/binary_struct.py +++ b/openpilot/system/ubloxd/binary_struct.py @@ -176,16 +176,6 @@ class BinaryStruct: fields = list(getattr(cls, '__annotations__', {}).items()) cls.__binary_fields__ = fields - @classmethod - def _read(inner_cls, reader: BinaryReader): - obj = inner_cls.__new__(inner_cls) - for name, spec in inner_cls.__binary_fields__: - value = _parse_field(spec, reader, obj) - setattr(obj, name, value) - return obj - - cls._read = _read # ty: ignore[invalid-assignment] # installed dynamically for each subclass - @classmethod def from_bytes(cls: type[T], data: bytes) -> T: """Parse struct from bytes.""" @@ -194,8 +184,11 @@ class BinaryStruct: @classmethod def _read(cls: type[T], reader: BinaryReader) -> T: - """Override in subclasses to implement parsing.""" - raise NotImplementedError + obj = cls.__new__(cls) + for name, spec in cls.__binary_fields__: + value = _parse_field(spec, reader, obj) + setattr(obj, name, value) + return obj def _resolve_path(obj: Any, path: str) -> Any: diff --git a/openpilot/system/ubloxd/ubloxd.py b/openpilot/system/ubloxd/ubloxd.py index 3365e9c693..892160db4a 100755 --- a/openpilot/system/ubloxd/ubloxd.py +++ b/openpilot/system/ubloxd/ubloxd.py @@ -441,7 +441,7 @@ class UbloxMsgParser: mb[i].pseudorange = m.pr_mes mb[i].carrierCycles = m.cp_mes mb[i].doppler = m.do_mes - mb[i].gnssId = int(m.gnss_id.value) + mb[i].gnssId = int(m.gnss_id) mb[i].glonassFrequencyIndex = m.freq_id mb[i].locktime = m.lock_time mb[i].cno = m.cno @@ -469,7 +469,7 @@ class UbloxMsgParser: svs = sr.init('svs', msg.num_svs) for i, s in enumerate(msg.svs): svs[i].svId = s.sv_id - svs[i].gnssId = int(s.gnss_id.value) + svs[i].gnssId = int(s.gnss_id) svs[i].flagsBitfield = s.flags svs[i].cno = s.cno svs[i].elevationDeg = s.elev @@ -483,8 +483,8 @@ class UbloxMsgParser: hw.noisePerMS = msg.noise_per_ms hw.flags = msg.flags hw.agcCnt = msg.agc_cnt - hw.aStatus = int(msg.a_status.value) - hw.aPower = int(msg.a_power.value) + hw.aStatus = int(msg.a_status) + hw.aPower = int(msg.a_power) hw.jamInd = msg.jam_ind return ('ubloxGnss', dat) diff --git a/openpilot/system/webrtc/device/messaging.py b/openpilot/system/webrtc/device/messaging.py index 1ba537065d..b904851cfc 100644 --- a/openpilot/system/webrtc/device/messaging.py +++ b/openpilot/system/webrtc/device/messaging.py @@ -80,7 +80,7 @@ class CerealIncomingMessageProxy: def __init__(self, pm: messaging.PubMaster): self.pm = pm - def send(self, message: bytes): + def send(self, message: bytes | str): msg_json = json.loads(message) msg_type, msg_data = msg_json["type"], msg_json["data"] size = None diff --git a/openpilot/system/webrtc/device/video.py b/openpilot/system/webrtc/device/video.py index cb85dff73e..e48c02b7af 100644 --- a/openpilot/system/webrtc/device/video.py +++ b/openpilot/system/webrtc/device/video.py @@ -87,6 +87,7 @@ class LiveStreamVideoStreamTrack(TiciVideoStreamTrack): await asyncio.sleep(0.005) continue + assert self._sock is not None msg = messaging.recv_one_or_none(self._sock) if msg is not None: if not self._seen_keyframe and (getattr(msg, msg.which()).idx.flags & V4L2_BUF_FLAG_KEYFRAME): diff --git a/openpilot/system/webrtc/webrtcd.py b/openpilot/system/webrtc/webrtcd.py index 5f976d4255..7e1e00647a 100755 --- a/openpilot/system/webrtc/webrtcd.py +++ b/openpilot/system/webrtc/webrtcd.py @@ -102,7 +102,7 @@ class StreamSession: async def get_answer(self): return await self.stream.start() - def message_handler(self, message: bytes): + def message_handler(self, message: bytes | str): try: if self.raw and isinstance(message, bytes): service = messaging.log_from_bytes(message).which() @@ -292,6 +292,7 @@ async def handle_get_stream(state: ServerState, raw_body: bytes, content_type: s stream_dict.pop(session.identifier, None) schedule_teardown(state) + assert session.run_task is not None session.run_task.add_done_callback(remove_finished_session) return _json_response({"sdp": answer.sdp, "type": answer.type}) @@ -350,9 +351,11 @@ class WebrtcdHandler(BaseHTTPRequestHandler): return self.rfile.read(length) if length else b"" def _run(self, coro) -> tuple[int, bytes, str]: + assert isinstance(self.server, WebrtcdHTTPServer) return asyncio.run_coroutine_threadsafe(coro, self.server.loop).result() def _dispatch_request(self) -> None: + assert isinstance(self.server, WebrtcdHTTPServer) parsed = urlparse(self.path) allowed = self._routes.get(parsed.path) diff --git a/openpilot/tools/lateral_maneuvers/lateral_maneuversd.py b/openpilot/tools/lateral_maneuvers/lateral_maneuversd.py index ed07c896f9..cc0c633eff 100755 --- a/openpilot/tools/lateral_maneuvers/lateral_maneuversd.py +++ b/openpilot/tools/lateral_maneuvers/lateral_maneuversd.py @@ -133,6 +133,7 @@ def main(): if complete_cnt > 0: complete_cnt -= 1 + assert maneuver is not None alert_msg.alertDebug.alertText1 = 'Completed' alert_msg.alertDebug.alertText2 = maneuver.description elif maneuver is not None: @@ -193,6 +194,7 @@ def main(): plan_send.valid = maneuver is not None and maneuver.active and complete_cnt == 0 if plan_send.valid: + assert maneuver is not None plan_send.lateralManeuverPlan.desiredCurvature = maneuver._baseline_curvature + accel / max(v_ego, MIN_SPEED) ** 2 pm.send('lateralManeuverPlan', plan_send) diff --git a/openpilot/tools/lib/api.py b/openpilot/tools/lib/api.py index 682cab9bac..091fe55733 100644 --- a/openpilot/tools/lib/api.py +++ b/openpilot/tools/lib/api.py @@ -34,7 +34,7 @@ class CommaApi: return self.request('POST', endpoint, **kwargs) class APIError(Exception): - pass + status_code: int class UnauthorizedError(Exception): pass diff --git a/openpilot/tools/lib/auth.py b/openpilot/tools/lib/auth.py index 02df4954a5..b6853079d9 100755 --- a/openpilot/tools/lib/auth.py +++ b/openpilot/tools/lib/auth.py @@ -55,6 +55,7 @@ class ClientRedirectHandler(BaseHTTPRequestHandler): return query_parsed = parse_qs(urlsplit(self.path).query, keep_blank_values=True) + assert isinstance(self.server, ClientRedirectServer) with self.server.result_lock: if not self.server.query_params and ('code' in query_parsed or 'error' in query_parsed): self.server.query_params = query_parsed diff --git a/openpilot/tools/lib/logreader.py b/openpilot/tools/lib/logreader.py index 805e411b53..3023b4e085 100755 --- a/openpilot/tools/lib/logreader.py +++ b/openpilot/tools/lib/logreader.py @@ -184,7 +184,7 @@ def auto_source(identifier: str, sources: list[Source], default_mode: ReadMode) raise FileNotFoundError(f"Did not find {fn} for seg idxs {needed_seg_idxs} of {sr.route_name}") except Exception as e: - exceptions[source.__name__] = e + exceptions[getattr(source, '__name__', repr(source))] = e if fn == try_fns[0]: missing_logs = len(needed_seg_idxs) diff --git a/openpilot/tools/plotjuggler/test_plotjuggler.py b/openpilot/tools/plotjuggler/test_plotjuggler.py index 497cc52d93..d5ba9b0cce 100644 --- a/openpilot/tools/plotjuggler/test_plotjuggler.py +++ b/openpilot/tools/plotjuggler/test_plotjuggler.py @@ -25,6 +25,7 @@ class TestPlotJuggler(OpenpilotTestCase): with subprocess.Popen(f'QT_QPA_PLATFORM=offscreen {pj} "{DEMO_ROUTE}/:2"', stderr=subprocess.PIPE, shell=True, start_new_session=True) as p: # Wait for "Done reading Rlog data" signal from the plugin + assert p.stderr is not None output = "\n" with Timeout(180, error_msg=output): while output.splitlines()[-1] != "Done reading Rlog data": diff --git a/openpilot/tools/replay/lib/ui_helpers.py b/openpilot/tools/replay/lib/ui_helpers.py index 653ebf7710..8c0f142b5a 100644 --- a/openpilot/tools/replay/lib/ui_helpers.py +++ b/openpilot/tools/replay/lib/ui_helpers.py @@ -198,9 +198,8 @@ def plot_lead(rs, top_down): def maybe_update_radar_points(lt, lid_overlay): - ar_pts = [] + ar_pts = {} if lt is not None: - ar_pts = {} for track in lt: ar_pts[track.trackId] = [track.dRel, track.yRel, track.vRel] for pt in ar_pts.values(): diff --git a/openpilot/tools/sim/tests/test_sim_bridge.py b/openpilot/tools/sim/tests/test_sim_bridge.py index a2c0611937..cbd28fd4b2 100644 --- a/openpilot/tools/sim/tests/test_sim_bridge.py +++ b/openpilot/tools/sim/tests/test_sim_bridge.py @@ -8,7 +8,7 @@ from multiprocessing import Queue from openpilot.common.test import OpenpilotTestCase from openpilot.cereal import messaging from openpilot.common.basedir import BASEDIR -from openpilot.tools.sim.bridge.common import QueueMessageType +from openpilot.tools.sim.bridge.common import QueueMessageType, SimulatorBridge SIM_DIR = os.path.join(BASEDIR, "openpilot/tools/sim") @@ -21,6 +21,9 @@ class TestSimBridgeBase(OpenpilotTestCase): def setup_method(self): self.processes = [] + def create_bridge(self) -> SimulatorBridge: + raise NotImplementedError + @unittest.skip("TODO: re-enable simulator bridge test") def test_driving(self): # Startup manager and bridge.py. Check processes are running, then engage and verify. diff --git a/pyproject.toml b/pyproject.toml index e084d3f720..1d0adbfcd1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -149,9 +149,14 @@ lint.flake8-implicit-str-concat.allow-multiline = false [tool.ruff.format] quote-style = "preserve" -[tool.ty.rules] -unresolved-import = "ignore" # Cython-compiled modules (.pyx) -unresolved-attribute = "ignore" # many from capnp and Cython modules +[tool.ty.analysis] +# pycapnp is a Cython extension without stubs +replace-imports-with-any = ["capnp", "capnp.**"] +# optional dependencies: the sim, the webcam, and UP-only tools +allowed-unresolved-imports = ["metadrive.**", "panda3d.**", "av", "cv2", "evdev", "ultimate_provisioning"] + +[tool.ty.environment] +extra-paths = ["opendbc_repo", "rednose_repo", "teleoprtc_repo", "tinygrad_repo"] [tool.uv] python-preference = "only-managed" diff --git a/rednose_repo b/rednose_repo index e60428b2e5..b0113ffe5e 160000 --- a/rednose_repo +++ b/rednose_repo @@ -1 +1 @@ -Subproject commit e60428b2e52f139d5fe5466d4d9fa3c6adeadad8 +Subproject commit b0113ffe5e0cd161275c9216351c75ded5230cdc diff --git a/uv.lock b/uv.lock index 098aa940be..2926534b54 100644 --- a/uv.lock +++ b/uv.lock @@ -1066,27 +1066,27 @@ wheels = [ [[package]] name = "ty" -version = "0.0.80" +version = "0.0.112" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/54/b0/6d1b10e0d422736a3c439e487c950ae785f401d71ff879d5be68bccb6d90/ty-0.0.80.tar.gz", hash = "sha256:fe86bc91327e45ff5e3593b7e306e7f57a44bc0608f38d647b8d97bd99c96013", size = 7183998, upload-time = "2026-09-09T21:18:47.547Z" } +sdist = { url = "https://files.pythonhosted.org/packages/d8/94/e6c3f8ed304bc5d7ae66ae5cced39b5c48151527b5bc69693e169918b9c0/ty-0.0.112.tar.gz", hash = "sha256:8e7eb8c95fa08b35f7e86eccacaf2be5e1fe34a7c7da164280d292e1180d5907", size = 8459506, upload-time = "2026-11-26T16:23:25.704Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/29/c8/3c93195eca282936ebb574d0ba98843e4b147ee324006f88464777012a92/ty-0.0.80-py3-none-linux_armv6l.whl", hash = "sha256:738d1cfca466c577aea24547c348629c00c63548cf7da2c46b497b3840f85dee", size = 13606509, upload-time = "2026-09-09T21:18:10.476Z" }, - { url = "https://files.pythonhosted.org/packages/e7/48/bbb47f7001c97262a5109bcd92a45bcc8a2fbb21e994c214a9897630bfb7/ty-0.0.80-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:56060164bb8ee43770fa367524fbdba2611fc90f8923a02cc91f80eb37d5a1b0", size = 13203812, upload-time = "2026-09-09T21:18:12.796Z" }, - { url = "https://files.pythonhosted.org/packages/db/8d/fd141160567047b742e466be8ed09a4c4ed80fa045d37f946eb4f4532fee/ty-0.0.80-py3-none-macosx_11_0_arm64.whl", hash = "sha256:da4062e0fbf3923d9b71688157c5753394f243348f00732e9edbb27498397169", size = 13021896, upload-time = "2026-09-09T21:18:15.186Z" }, - { url = "https://files.pythonhosted.org/packages/1e/10/b4177faf9e71bc37bc4d08f512042269660a1ce0ec457c48f96e51fc91d7/ty-0.0.80-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a9eb94b2659f506a3a07a9ea1415d5c18aaa1e554adc1612614d617a0ed320e1", size = 13083881, upload-time = "2026-09-09T21:18:17.616Z" }, - { url = "https://files.pythonhosted.org/packages/7f/c2/192d48b9a9acbbe030fc9a4bd73af75671a5566e731949f77e912a68ce68/ty-0.0.80-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e2f5e39a87da48c1af1a3b3135f02be7a83a93da30b0d6a5f5d27806e7c747ce", size = 13354874, upload-time = "2026-09-09T21:18:19.744Z" }, - { url = "https://files.pythonhosted.org/packages/0a/5b/736dfd31efd98bed9dbe018ff91676e5ea83485b1e24afb635fd0247728f/ty-0.0.80-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4e00149e7779c6b98f3ba12e10a631a861bd7ca1a42bbf064e2677ada7d2c0c2", size = 14204805, upload-time = "2026-09-09T21:18:21.999Z" }, - { url = "https://files.pythonhosted.org/packages/fd/6f/557c726cb53401998e3589bb632c963a6887a70240e0a4386024f3731c81/ty-0.0.80-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a377268f359fb6e7a2cc9026a09223c764f58d020dec8e6baeaba9caba6ff829", size = 14630014, upload-time = "2026-09-09T21:18:24Z" }, - { url = "https://files.pythonhosted.org/packages/e9/19/7a4b18fe27f6b6bd4ffa56b67c8b09ecb76bb4312d1c64b73f65417b4dbd/ty-0.0.80-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4511dbf1b266b9ce5b73e9b28d94468096c2b6da00e2fe205168c32d3b352ca7", size = 14326946, upload-time = "2026-09-09T21:18:26.679Z" }, - { url = "https://files.pythonhosted.org/packages/f8/95/16dd90805fc7e53ec54ae9fdb1a8b74753fb159a55a170f60f49b9417824/ty-0.0.80-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fe95feffa7156800c6f804195acb9fb5846a39671c7192c30fff23351aaf7c31", size = 13705988, upload-time = "2026-09-09T21:18:28.681Z" }, - { url = "https://files.pythonhosted.org/packages/b1/09/4e87992c23ab8a742c7d4914ac5fe66fb9301c8464a69fd2ecbc0be3fbcd/ty-0.0.80-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:ba26b39f06bc8c3c2c5acd3a147239482b36620cdbca1b9d02e915294854f2cc", size = 14233729, upload-time = "2026-09-09T21:18:30.961Z" }, - { url = "https://files.pythonhosted.org/packages/36/e9/b8c11fda8e66a1d1cc1a7160ed719a33f4dc0107b1cef6a14e2673965763/ty-0.0.80-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:2e6167320888c115a6fbe69893b63fd1c848f9121a454e75e5f612674528e3f3", size = 13173523, upload-time = "2026-09-09T21:18:33.266Z" }, - { url = "https://files.pythonhosted.org/packages/73/a7/512083fa540c5be1ac8642658f03bfb5bfa6fd168ea4f55e3c0aabe04166/ty-0.0.80-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:7aecb62b4de70b479eab07d1779ea66da26dd8b068f50a9330867157312f103c", size = 13373014, upload-time = "2026-09-09T21:18:35.339Z" }, - { url = "https://files.pythonhosted.org/packages/5e/63/cd2f0ca81fd9b8cafef93bbcf022bf636bc4de8ee7465c6aafeec1d4d52b/ty-0.0.80-py3-none-musllinux_1_2_i686.whl", hash = "sha256:4fed06adacd16b7e2d722f37449021b1419598d0440769701c0f4827faddde63", size = 13667827, upload-time = "2026-09-09T21:18:37.241Z" }, - { url = "https://files.pythonhosted.org/packages/0d/5d/ebdfdcb2dc099ae74dc4b75511eef0dd398b2fa27006c543543974b4567f/ty-0.0.80-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:09329af6303ce611ec2cfffc995dc1ddf76c9f47194fc1a4d64a984759c25f5b", size = 13963866, upload-time = "2026-09-09T21:18:39.386Z" }, - { url = "https://files.pythonhosted.org/packages/c4/f6/c286d5e1b560cfd16d6e91fdab683718aacf09fc88938ca06dcc9d1c8502/ty-0.0.80-py3-none-win32.whl", hash = "sha256:a81b3b512f7b4c68e42fbd1835633de658809666e9aafd5defa52bbc5197698d", size = 12881806, upload-time = "2026-09-09T21:18:41.507Z" }, - { url = "https://files.pythonhosted.org/packages/fd/c8/3b3a8ac16d47a23ff34bf57c0d99a491860748aea96e0e886b4bfed54f9b/ty-0.0.80-py3-none-win_amd64.whl", hash = "sha256:8043f99878a2ae434781cb881c8a3840dff70c4a5b60bdc5ae84251f35ee063f", size = 13528883, upload-time = "2026-09-09T21:18:43.687Z" }, - { url = "https://files.pythonhosted.org/packages/2e/71/a6c697930fca76596d7d17f8853120f41a298fd9ea632c901cfca8ca869b/ty-0.0.80-py3-none-win_arm64.whl", hash = "sha256:e277ef034331da5319efc839c064968d24f35715b71c70369cf97d36fe4dcbdb", size = 13370135, upload-time = "2026-09-09T21:18:45.758Z" }, + { url = "https://files.pythonhosted.org/packages/fc/b6/4b3ad2ca8c3f6c4515c5959f238fa3d046d909597eaffa9fd2d423e200ef/ty-0.0.112-py3-none-linux_armv6l.whl", hash = "sha256:5957ccc40bc439f275d36a2fad16dab288d2a8a59bad49505d57fdae4ebd1be9", size = 15472467, upload-time = "2026-11-26T16:22:46.434Z" }, + { url = "https://files.pythonhosted.org/packages/9c/1b/f1309df85397d07f80e0fe3943783a7ca82dda3fc9821482dec9711586a7/ty-0.0.112-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:d8536e8b5e3dda22f6d8c124edf34009fc219f11976fe154dac10476fefea9c8", size = 14970128, upload-time = "2026-11-26T16:22:49.283Z" }, + { url = "https://files.pythonhosted.org/packages/d0/e1/cbd91ede3e31069aca010b1204063f3a186781f27e32d3ec03dc970aa232/ty-0.0.112-py3-none-macosx_11_0_arm64.whl", hash = "sha256:235f676a71134225ed80f598414ad9f07240ce5c6c919b6fcb62b19168167559", size = 14369627, upload-time = "2026-11-26T16:22:51.386Z" }, + { url = "https://files.pythonhosted.org/packages/92/fe/4a4eacad1a33e017de4f565cd07874df3af604a1266a7749bc8cba833e7f/ty-0.0.112-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0f86ee4e66e232114821f1782edab57047cb4dbc6d04a8aa6517b167bc604fa0", size = 15277898, upload-time = "2026-11-26T16:22:53.753Z" }, + { url = "https://files.pythonhosted.org/packages/30/a3/c4d14e5921b6e691c9bce8241bd84c267a86af91adc0376c4fb27b56310f/ty-0.0.112-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:48b37c1a4ee05d1b15acae818727bfe8cb4fa78698c18a694be9d586379168c8", size = 15202039, upload-time = "2026-11-26T16:22:55.798Z" }, + { url = "https://files.pythonhosted.org/packages/e8/4d/e05186bcb1d07858af3265f135447630b47d051abb073d91a515c18a0c5b/ty-0.0.112-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ed02c9503fffc4cd20d1b2f6fa45df88c9792d841c1e4ec6c97c6381d704b2de", size = 16185393, upload-time = "2026-11-26T16:22:58.107Z" }, + { url = "https://files.pythonhosted.org/packages/1d/db/202ac6d5c8521c233ecbf372e3891ab36797027dcaf4c99c29e8cffd7e20/ty-0.0.112-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:dad0794a2831787db9e8bf100de692d3cbe1cd531793c8298989af933bbdc101", size = 16600242, upload-time = "2026-11-26T16:23:00.365Z" }, + { url = "https://files.pythonhosted.org/packages/de/96/bf8de238e4504acd97519cc33e59bc459fe23b494b0fd45558d0645179af/ty-0.0.112-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cb8582035881a64da63934e61d6fceee16b0996d5dabbaec8037cdcc117e4537", size = 16372340, upload-time = "2026-11-26T16:23:02.506Z" }, + { url = "https://files.pythonhosted.org/packages/90/1e/17775cb8fdfe4f752a35cb9a10634d0a2f95c1c7735a20d4268f0cbcc11a/ty-0.0.112-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:209b4b311aebca8b3f02bd9d3b0b412eadd32eaea96bec123c86b80102f04524", size = 17906885, upload-time = "2026-11-26T16:23:04.952Z" }, + { url = "https://files.pythonhosted.org/packages/07/ad/8cb52ea4cc6c41c1eb7f58044e6a0140d729f5aa21106e4c703965d613fb/ty-0.0.112-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:0e8db878efc52b6906f07d9dce6b2a4510fc9107cad8e9ecee94587d8f20fa62", size = 15999108, upload-time = "2026-11-26T16:23:07.493Z" }, + { url = "https://files.pythonhosted.org/packages/5c/75/77f56a59a87ba1f649b3cc01f836c974e28943b5e9c02074467c66ffa9e5/ty-0.0.112-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:13c22ac69db491129495539ec7786fe51ebc65040a5c237ffee057a55d654c00", size = 14844483, upload-time = "2026-11-26T16:23:09.921Z" }, + { url = "https://files.pythonhosted.org/packages/15/19/ee07bf683bb3de6e087e019a5333f36ce43037b9ba0dc255c6a06c1680ab/ty-0.0.112-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:248d4b6a55e6b1b9cb53ab128112e4257b2e8fdfc9e5af01a714b9844297d750", size = 15208021, upload-time = "2026-11-26T16:23:12.33Z" }, + { url = "https://files.pythonhosted.org/packages/b1/17/e69da867f556922031fd3f5aab21db92e798922a5d649cf49f5be726f7f0/ty-0.0.112-py3-none-musllinux_1_2_i686.whl", hash = "sha256:66a9294f13d43b648aab6c16880cfafc05e3730853ef831cfb65ebfdae98b4d3", size = 15545401, upload-time = "2026-11-26T16:23:14.63Z" }, + { url = "https://files.pythonhosted.org/packages/d2/64/c1dd551ae9982f52e0f0dad5280fdc0dd24fb434ade098168ff1ce0bdb20/ty-0.0.112-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:f3e2bd0b33f6e4da2116a00d9b2b5641ab3d17f19d15741d25d20875e4d07942", size = 15876251, upload-time = "2026-11-26T16:23:16.963Z" }, + { url = "https://files.pythonhosted.org/packages/56/81/7bfd693d17590721d8471dcdd6e3d936c5662f4de56bfca40564e2b6e2f3/ty-0.0.112-py3-none-win32.whl", hash = "sha256:b7b1b9ca3c5acc158f49b1c4d840f7ffa45fcc9e3be7868afd23b2311b630e53", size = 14361337, upload-time = "2026-11-26T16:23:19.083Z" }, + { url = "https://files.pythonhosted.org/packages/2a/9f/547d13c03064f1c3b2236b16bdaefd69814239d7b0af67433e662c2686af/ty-0.0.112-py3-none-win_amd64.whl", hash = "sha256:2db7835130bc4b43259c1ae95b627f89fb79ec653ef2935d1aa27e31d84f15ed", size = 15234850, upload-time = "2026-11-26T16:23:21.126Z" }, + { url = "https://files.pythonhosted.org/packages/55/ba/03fea1e8a545d466f777b385c457c6fa8dd0ca3922572c4cb0b7c3a21957/ty-0.0.112-py3-none-win_arm64.whl", hash = "sha256:61272e3547cb98f027e749bf1feee8da5e1a687ffc55f5c33157ebabf6915f23", size = 14435868, upload-time = "2026-11-26T16:23:23.494Z" }, ] [[package]]