chore: eliminate all usage of pyo3::prelude::*
This commit is contained in:
@@ -7,8 +7,8 @@ use chrono::{DateTime, Utc};
|
||||
use emitter_and_signal::signal::Signal;
|
||||
use once_cell::sync::OnceCell;
|
||||
use pyo3::{
|
||||
prelude::*,
|
||||
types::{PyCFunction, PyDict, PyTuple},
|
||||
types::{PyAnyMethods as _, PyCFunction, PyDict, PyModule, PyTuple},
|
||||
Bound, FromPyObject, IntoPyObject as _, Py, PyAny, PyErr, Python,
|
||||
};
|
||||
use snafu::{ResultExt, Snafu};
|
||||
use std::{future::Future, sync::Arc};
|
||||
@@ -86,7 +86,7 @@ impl<
|
||||
while let Some(publisher) = publisher_stream.wait().await {
|
||||
let (new_state_sender, mut new_state_receiver) = mpsc::channel(8);
|
||||
|
||||
let untrack = Python::attach::<_, PyResult<_>>(|py| {
|
||||
let untrack = Python::attach::<_, Result<_, PyErr>>(|py| {
|
||||
static EVENT_MODULE: OnceCell<Py<PyModule>> = OnceCell::new();
|
||||
|
||||
let event_module = EVENT_MODULE
|
||||
|
||||
Reference in New Issue
Block a user