From b7313ddc32a500ab2132ec3e7d381393f04af18a Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 10 Nov 2021 15:32:07 +0800 Subject: [PATCH] coredevice/rtio: fix tuple annotation --- artiq/coredevice/rtio.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/artiq/coredevice/rtio.py b/artiq/coredevice/rtio.py index 216f94bd4..befab9339 100644 --- a/artiq/coredevice/rtio.py +++ b/artiq/coredevice/rtio.py @@ -1,5 +1,4 @@ from numpy import int32, int64 -from typing import Tuple from artiq.language.core import extern @@ -24,9 +23,9 @@ def rtio_input_data(channel: int32) -> int32: raise NotImplementedError("syscall not simulated") -# NAC3TODO @extern +@extern def rtio_input_timestamped_data(timeout_mu: int64, - channel: int32) -> Tuple[int64, int32]: + channel: int32) -> tuple[int64, int32]: """Wait for an input event up to timeout_mu on the given channel, and return a tuple of timestamp and attached data, or (-1, 0) if the timeout is reached."""