Skip to content

Commit d66eeaa

Browse files
committed
Update I2CTarget.c
Modification of the doc text of function request(). 1) The timout parameter is a keyword-only argument; so Added '*,' in the function signature; 2) for parameter timeout an integer is expected, not a float.
1 parent 6f5ffd8 commit d66eeaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/i2ctarget/I2CTarget.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ STATIC mp_obj_t i2ctarget_i2c_target_obj___exit__(size_t n_args, const mp_obj_t
130130
}
131131
STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(i2ctarget_i2c_target___exit___obj, 4, 4, i2ctarget_i2c_target_obj___exit__);
132132

133-
//| def request(self, timeout: float = -1) -> I2CTargetRequest:
133+
//| def request(self, *, timeout: int = -1) -> I2CTargetRequest:
134134
//| """Wait for an I2C request.
135135
//|
136136
//| :param float timeout: Timeout in seconds. Zero means wait forever, a negative value means check once

0 commit comments

Comments
 (0)