From 041766351c1bc650a57edf4d0d17a388b77e179c Mon Sep 17 00:00:00 2001 From: "Paulus H.J. Schulinck" Date: Sat, 1 Oct 2022 22:23:17 +0100 Subject: [PATCH] Update I2CTarget.c Correction in function request() doc function signature. (after speaking with @jepler on Discord). (@jepler: 'Circuitpython always has floats enabled') --- shared-bindings/i2ctarget/I2CTarget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared-bindings/i2ctarget/I2CTarget.c b/shared-bindings/i2ctarget/I2CTarget.c index 3e0c123738..17da952118 100644 --- a/shared-bindings/i2ctarget/I2CTarget.c +++ b/shared-bindings/i2ctarget/I2CTarget.c @@ -130,7 +130,7 @@ STATIC mp_obj_t i2ctarget_i2c_target_obj___exit__(size_t n_args, const mp_obj_t } STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(i2ctarget_i2c_target___exit___obj, 4, 4, i2ctarget_i2c_target_obj___exit__); -//| def request(self, *, timeout: int = -1) -> I2CTargetRequest: +//| def request(self, *, timeout: float = -1) -> I2CTargetRequest: //| """Wait for an I2C request. //| //| :param float timeout: Timeout in seconds. Zero means wait forever, a negative value means check once