Skip to content

Commit

Permalink
Minor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanIsCoding committed Feb 21, 2025
1 parent 7eed48f commit 40b9f87
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pyo3-macros-backend/src/pyclass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2045,9 +2045,11 @@ fn pyclass_class_geitem(
parse_quote! {
#[classmethod]
fn #ident<'py>(
py: #pyo3_path::Python<'py>, cls: #pyo3_path::Bound<'py, #pyo3_path::types::PyAny>, key: #pyo3_path::Bound<'py, #pyo3_path::types::PyAny>
py: #pyo3_path::Python<'py>,
cls: &#pyo3_path::Bound<'py, #pyo3_path::types::PyType>,
key: &#pyo3_path::Bound<'py, #pyo3_path::types::PyAny>
) -> #pyo3_path::PyResult<#pyo3_path::Bound<'py, #pyo3_path::types::PyGenericAlias>> {
#pyo3_path::types::PyGenericAlias::new(py, cls, key)
#pyo3_path::types::PyGenericAlias::new(py, cls.as_any(), key)
}
}
};
Expand Down

0 comments on commit 40b9f87

Please sign in to comment.