feat: update pyo3 (#308)

* feat: update pyo3

* update workflows

* python version

* update minimum

* update pyproject

* fix pipeline
This commit is contained in:
stefan-gorules
2025-02-07 13:12:46 +01:00
committed by GitHub
parent b992e7ccef
commit be305a4fba
13 changed files with 145 additions and 111 deletions
+4 -4
View File
@@ -2,13 +2,13 @@ use std::future::Future;
use std::sync::Arc;
use anyhow::anyhow;
use pyo3::{PyObject, Python};
use pyo3::{Py, PyAny, PyObject, Python};
use zen_engine::loader::{DecisionLoader, LoaderError, LoaderResponse};
use zen_engine::model::DecisionContent;
#[derive(Default)]
pub(crate) struct PyDecisionLoader(Option<PyObject>);
pub(crate) struct PyDecisionLoader(Option<Py<PyAny>>);
impl From<PyObject> for PyDecisionLoader {
fn from(value: PyObject) -> Self {
@@ -16,8 +16,8 @@ impl From<PyObject> for PyDecisionLoader {
}
}
impl From<Option<PyObject>> for PyDecisionLoader {
fn from(value: Option<PyObject>) -> Self {
impl From<Option<Py<PyAny>>> for PyDecisionLoader {
fn from(value: Option<Py<PyAny>>) -> Self {
Self(value)
}
}