Skip to content

Commit ec983f4

Browse files
committed
move import into function
1 parent b7aec67 commit ec983f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/generic.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ use futures::channel::oneshot;
2929
use futures::{channel::mpsc, SinkExt};
3030
use pin_project_lite::pin_project;
3131
use pyo3::prelude::*;
32-
use pyo3::sync::PyOnceLock;
3332
use pyo3::IntoPyObjectExt;
3433
#[cfg(feature = "unstable-streams")]
3534
use std::marker::PhantomData;
@@ -1659,6 +1658,8 @@ where
16591658
{
16601659
use std::ffi::CString;
16611660

1661+
use pyo3::sync::PyOnceLock;
1662+
16621663
static GLUE_MOD: PyOnceLock<Py<PyAny>> = PyOnceLock::new();
16631664
let py = gen.py();
16641665
let glue = GLUE_MOD

0 commit comments

Comments
 (0)