updated pyo3

This commit is contained in:
Max
2023-01-28 18:53:54 +01:00
parent 2d18ef664f
commit 488ad77840
4 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ pub struct PyBeatmap {
#[pymethods]
impl PyBeatmap {
#[new]
#[args(kwargs = "**")]
#[pyo3(signature = (**kwargs))]
fn new(kwargs: Option<&PyDict>) -> PyResult<Self> {
let kwargs = match kwargs {
Some(kwargs) => kwargs,
+1 -1
View File
@@ -42,7 +42,7 @@ macro_rules! set_calc {
#[pymethods]
impl PyCalculator {
#[new]
#[args(kwargs = "**")]
#[pyo3(signature = (**kwargs))]
fn new(kwargs: Option<&PyDict>) -> PyResult<Self> {
let kwargs = match kwargs {
Some(kwargs) => kwargs,