Skip to content

Commit 9829365

Browse files
committed
Fix return type annotation for wait_disconnect method in Crazyflie class
1 parent 7162e0f commit 9829365

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cflib2/_rust.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ class Crazyflie:
324324
r"""
325325
Disconnect from the Crazyflie
326326
"""
327-
async def wait_disconnect(self) -> str:
327+
async def wait_disconnect(self) -> builtins.str:
328328
r"""
329329
Wait for the Crazyflie to be disconnected
330330

rust/src/crazyflie.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl Crazyflie {
137137
/// Wait for the Crazyflie to be disconnected
138138
///
139139
/// Returns a human-readable string describing the reason for disconnection.
140-
#[gen_stub(override_return_type(type_repr = "collections.abc.Coroutine[typing.Any, typing.Any, str]"))]
140+
#[gen_stub(override_return_type(type_repr = "collections.abc.Coroutine[typing.Any, typing.Any, builtins.str]"))]
141141
fn wait_disconnect<'py>(&self, py: Python<'py>) -> PyResult<Bound<'py, PyAny>> {
142142
let inner = self.inner.clone();
143143
pyo3_async_runtimes::tokio::future_into_py(py, async move {

0 commit comments

Comments
 (0)