Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pyo3-ffi/src/structmember.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ use std::ffi::c_int;

pub use crate::PyMemberDef;

#[allow(deprecated)]
pub use crate::_Py_T_OBJECT as T_OBJECT;
pub use crate::Py_T_BOOL as T_BOOL;
pub use crate::Py_T_BYTE as T_BYTE;
pub use crate::Py_T_CHAR as T_CHAR;
Expand All @@ -19,12 +21,10 @@ pub use crate::Py_T_UINT as T_UINT;
pub use crate::Py_T_ULONG as T_ULONG;
pub use crate::Py_T_ULONGLONG as T_ULONGLONG;
pub use crate::Py_T_USHORT as T_USHORT;
#[allow(deprecated)]
pub use crate::_Py_T_OBJECT as T_OBJECT;

pub use crate::Py_T_PYSSIZET as T_PYSSIZET;
#[allow(deprecated)]
pub use crate::_Py_T_NONE as T_NONE;
pub use crate::Py_T_PYSSIZET as T_PYSSIZET;

/* Flags */
pub use crate::Py_READONLY as READONLY;
Expand Down
2 changes: 1 addition & 1 deletion src/pyclass/create_type_object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use crate::{
assign_sequence_item_from_mapping, get_sequence_item_from_mapping, tp_dealloc,
tp_dealloc_with_gc, PyClassImpl, PyClassItemsIter, PyObjectOffset,
},
pymethods::{Getter, PyGetterDef, PyMethodDefType, PySetterDef, Setter, _call_clear},
pymethods::{_call_clear, Getter, PyGetterDef, PyMethodDefType, PySetterDef, Setter},
trampoline::trampoline,
},
pycell::impl_::PyClassObjectLayout,
Expand Down
10 changes: 5 additions & 5 deletions tests/ui/abi3_inheritance.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ error[E0277]: pyclass `PyException` cannot be subclassed
4 | #[pyclass(extends=PyException)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required for `#[pyclass(extends=PyException)]`
|
= help: the trait `PyClassBaseType` is not implemented for `PyException`
= help: the trait `pyo3::impl_::pyclass::PyClassBaseType` is not implemented for `PyException`
= note: `PyException` must have `#[pyclass(subclass)]` to be eligible for subclassing
= note: subclassing native types requires Python >= 3.12 when using the `abi3` feature
help: the trait `PyClassBaseType` is implemented for `PyAny`
help: the trait `pyo3::impl_::pyclass::PyClassBaseType` is implemented for `PyAny`
--> src/types/any.rs
|
| impl crate::impl_::pyclass::PyClassBaseType for PyAny {
Expand All @@ -20,15 +20,15 @@ error[E0277]: pyclass `PyException` cannot be subclassed
4 | #[pyclass(extends=PyException)]
| ^^^^^^^^^^^ required for `#[pyclass(extends=PyException)]`
|
= help: the trait `PyClassBaseType` is not implemented for `PyException`
= help: the trait `pyo3::impl_::pyclass::PyClassBaseType` is not implemented for `PyException`
= note: `PyException` must have `#[pyclass(subclass)]` to be eligible for subclassing
= note: subclassing native types requires Python >= 3.12 when using the `abi3` feature
help: the trait `PyClassBaseType` is implemented for `PyAny`
help: the trait `pyo3::impl_::pyclass::PyClassBaseType` is implemented for `PyAny`
--> src/types/any.rs
|
| impl crate::impl_::pyclass::PyClassBaseType for PyAny {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: required by a bound in `PyClassImpl::BaseType`
note: required by a bound in `pyo3::impl_::pyclass::PyClassImpl::BaseType`
--> src/impl_/pyclass.rs
|
| type BaseType: PyTypeInfo + PyClassBaseType;
Expand Down
10 changes: 5 additions & 5 deletions tests/ui/abi3_nativetype_inheritance.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ error[E0277]: pyclass `PyDict` cannot be subclassed
5 | #[pyclass(extends=PyDict)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ required for `#[pyclass(extends=PyDict)]`
|
= help: the trait `PyClassBaseType` is not implemented for `PyDict`
= help: the trait `pyo3::impl_::pyclass::PyClassBaseType` is not implemented for `PyDict`
= note: `PyDict` must have `#[pyclass(subclass)]` to be eligible for subclassing
= note: subclassing native types requires Python >= 3.12 when using the `abi3` feature
help: the trait `PyClassBaseType` is implemented for `PyAny`
help: the trait `pyo3::impl_::pyclass::PyClassBaseType` is implemented for `PyAny`
--> src/types/any.rs
|
| impl crate::impl_::pyclass::PyClassBaseType for PyAny {
Expand All @@ -20,15 +20,15 @@ error[E0277]: pyclass `PyDict` cannot be subclassed
5 | #[pyclass(extends=PyDict)]
| ^^^^^^ required for `#[pyclass(extends=PyDict)]`
|
= help: the trait `PyClassBaseType` is not implemented for `PyDict`
= help: the trait `pyo3::impl_::pyclass::PyClassBaseType` is not implemented for `PyDict`
= note: `PyDict` must have `#[pyclass(subclass)]` to be eligible for subclassing
= note: subclassing native types requires Python >= 3.12 when using the `abi3` feature
help: the trait `PyClassBaseType` is implemented for `PyAny`
help: the trait `pyo3::impl_::pyclass::PyClassBaseType` is implemented for `PyAny`
--> src/types/any.rs
|
| impl crate::impl_::pyclass::PyClassBaseType for PyAny {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: required by a bound in `PyClassImpl::BaseType`
note: required by a bound in `pyo3::impl_::pyclass::PyClassImpl::BaseType`
--> src/impl_/pyclass.rs
|
| type BaseType: PyTypeInfo + PyClassBaseType;
Expand Down
12 changes: 0 additions & 12 deletions tests/ui/duplicate_pymodule_submodule.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,3 @@ error: `submodule` may only be specified once (it is implicitly always specified
|
4 | mod submod {}
| ^^^

error[E0425]: cannot find value `_PYO3_DEF` in module `submod`
--> tests/ui/duplicate_pymodule_submodule.rs:1:1
|
1 | #[pyo3::pymodule]
| ^^^^^^^^^^^^^^^^^ not found in `submod`
|
= note: this error originates in the attribute macro `pyo3::pymodule` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this static
|
3 + use crate::mymodule::_PYO3_DEF;
|
6 changes: 0 additions & 6 deletions tests/ui/invalid_argument_attributes.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,3 @@ error: expected identifier
|
23 | fn f(#[pyo3(from_py_with = "bytes_from_py")] _bytes: Vec<u8>) {}
| ^^^^^^^^^^^^^^^

error[E0425]: cannot find value `func` in this scope
--> tests/ui/invalid_argument_attributes.rs:13:55
|
13 | fn from_py_with_value_not_found(#[pyo3(from_py_with = func)] _param: String) {}
| ^^^^ not found in this scope
10 changes: 5 additions & 5 deletions tests/ui/invalid_base_class.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ error[E0277]: pyclass `PyBool` cannot be subclassed
4 | #[pyclass(extends=PyBool)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ required for `#[pyclass(extends=PyBool)]`
|
= help: the trait `PyClassBaseType` is not implemented for `PyBool`
= help: the trait `pyo3::impl_::pyclass::PyClassBaseType` is not implemented for `PyBool`
= note: `PyBool` must have `#[pyclass(subclass)]` to be eligible for subclassing
= help: the following other types implement trait `PyClassBaseType`:
= help: the following other types implement trait `pyo3::impl_::pyclass::PyClassBaseType`:
PyAny
PyArithmeticError
PyAssertionError
Expand All @@ -24,9 +24,9 @@ error[E0277]: pyclass `PyBool` cannot be subclassed
4 | #[pyclass(extends=PyBool)]
| ^^^^^^ required for `#[pyclass(extends=PyBool)]`
|
= help: the trait `PyClassBaseType` is not implemented for `PyBool`
= help: the trait `pyo3::impl_::pyclass::PyClassBaseType` is not implemented for `PyBool`
= note: `PyBool` must have `#[pyclass(subclass)]` to be eligible for subclassing
= help: the following other types implement trait `PyClassBaseType`:
= help: the following other types implement trait `pyo3::impl_::pyclass::PyClassBaseType`:
PyAny
PyArithmeticError
PyAssertionError
Expand All @@ -36,7 +36,7 @@ error[E0277]: pyclass `PyBool` cannot be subclassed
PyBlockingIOError
PyBrokenPipeError
and $N others
note: required by a bound in `PyClassImpl::BaseType`
note: required by a bound in `pyo3::impl_::pyclass::PyClassImpl::BaseType`
--> src/impl_/pyclass.rs
|
| type BaseType: PyTypeInfo + PyClassBaseType;
Expand Down
6 changes: 0 additions & 6 deletions tests/ui/invalid_frompy_derive.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,3 @@ error: Useless variant `rename_all` - enum is already annotated with `rename_all
|
258 | #[pyo3(rename_all = "camelCase")]
| ^^^^^^^^^^

error[E0425]: cannot find value `func` in this scope
--> tests/ui/invalid_frompy_derive.rs:164:27
|
164 | #[pyo3(from_py_with = func)]
| ^^^^ not found in this scope
14 changes: 7 additions & 7 deletions tests/ui/invalid_frozen_pyclass_borrow.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ error[E0271]: type mismatch resolving `<Foo as PyClass>::Frozen == False`
11 | fn mut_method(&mut self) {}
| ^ type mismatch resolving `<Foo as PyClass>::Frozen == False`
|
note: expected this to be `False`
note: expected this to be `pyo3::pyclass::boolean_struct::False`
--> tests/ui/invalid_frozen_pyclass_borrow.rs:3:1
|
3 | #[pyclass(frozen)]
| ^^^^^^^^^^^^^^^^^^
note: required by a bound in `extract_pyclass_ref_mut`
note: required by a bound in `pyo3::impl_::extract_argument::extract_pyclass_ref_mut`
--> src/impl_/extract_argument.rs
|
| pub fn extract_pyclass_ref_mut<'a, 'holder, T: PyClass<Frozen = False>>(
Expand All @@ -28,7 +28,7 @@ error[E0271]: type mismatch resolving `<Foo as PyClass>::Frozen == False`
9 | #[pymethods]
| ^^^^^^^^^^^^ type mismatch resolving `<Foo as PyClass>::Frozen == False`
|
note: expected this to be `False`
note: expected this to be `pyo3::pyclass::boolean_struct::False`
--> tests/ui/invalid_frozen_pyclass_borrow.rs:3:1
|
3 | #[pyclass(frozen)]
Expand All @@ -46,7 +46,7 @@ error[E0271]: type mismatch resolving `<Foo as PyClass>::Frozen == False`
15 | let borrow = foo.bind(py).borrow_mut();
| ^^^^^^^^^^ type mismatch resolving `<Foo as PyClass>::Frozen == False`
|
note: expected this to be `False`
note: expected this to be `pyo3::pyclass::boolean_struct::False`
--> tests/ui/invalid_frozen_pyclass_borrow.rs:3:1
|
3 | #[pyclass(frozen)]
Expand All @@ -67,7 +67,7 @@ error[E0271]: type mismatch resolving `<ImmutableChild as PyClass>::Frozen == Fa
25 | let borrow = child.bind(py).borrow_mut();
| ^^^^^^^^^^ type mismatch resolving `<ImmutableChild as PyClass>::Frozen == False`
|
note: expected this to be `False`
note: expected this to be `pyo3::pyclass::boolean_struct::False`
--> tests/ui/invalid_frozen_pyclass_borrow.rs:21:1
|
21 | #[pyclass(frozen, extends = MutableBase)]
Expand All @@ -88,7 +88,7 @@ error[E0271]: type mismatch resolving `<MutableBase as PyClass>::Frozen == True`
29 | class.get();
| ^^^ type mismatch resolving `<MutableBase as PyClass>::Frozen == True`
|
note: expected this to be `True`
note: expected this to be `pyo3::pyclass::boolean_struct::True`
--> tests/ui/invalid_frozen_pyclass_borrow.rs:18:1
|
18 | #[pyclass(subclass)]
Expand All @@ -109,7 +109,7 @@ error[E0271]: type mismatch resolving `<MutableBase as PyClass>::Frozen == True`
33 | class.get();
| ^^^ type mismatch resolving `<MutableBase as PyClass>::Frozen == True`
|
note: expected this to be `True`
note: expected this to be `pyo3::pyclass::boolean_struct::True`
--> tests/ui/invalid_frozen_pyclass_borrow.rs:18:1
|
18 | #[pyclass(subclass)]
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/invalid_property_args.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ error[E0277]: `PhantomData<i32>` cannot be converted to a Python object
&'a (T0, T1, T2, T3)
&'a (T0, T1, T2, T3, T4)
and $N others
= note: required for `PhantomData<i32>` to implement `for<'py> PyO3GetField<'py>`
note: required by a bound in `PyClassGetterGenerator::<ClassT, FieldT, OFFSET, false, false, IMPLEMENTS_INTOPYOBJECT>::generate`
= note: required for `PhantomData<i32>` to implement `for<'py> pyo3::impl_::pyclass::PyO3GetField<'py>`
note: required by a bound in `pyo3::impl_::pyclass::PyClassGetterGenerator::<ClassT, FieldT, OFFSET, false, false, IMPLEMENTS_INTOPYOBJECT>::generate`
--> src/impl_/pyclass.rs
|
| pub const fn generate(&self, name: &'static CStr, doc: Option<&'static CStr>) -> PyMethodDefType
Expand Down
28 changes: 14 additions & 14 deletions tests/ui/invalid_pyclass_args.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ help: consider annotating `StructFromPyObjectNoClone` with `#[derive(Clone)]`
192 | struct StructFromPyObjectNoClone {
|

error[E0119]: conflicting implementations of trait `PyClassNewTextSignature` for type `NewFromFieldsWithManualNew`
error[E0119]: conflicting implementations of trait `pyo3::impl_::pyclass::doc::PyClassNewTextSignature` for type `NewFromFieldsWithManualNew`
--> tests/ui/invalid_pyclass_args.rs:213:1
|
208 | #[pyclass(new = "from_fields")]
Expand Down Expand Up @@ -442,8 +442,8 @@ error[E0277]: `Box<dyn std::error::Error + Send + Sync>` cannot be used as a Pyt
NewFromFieldsWithManualNew
and $N others
= note: required for `Box<dyn std::error::Error + Send + Sync>` to implement `pyo3::FromPyObject<'_, '_>`
= note: required for `Box<dyn std::error::Error + Send + Sync>` to implement `PyFunctionArgument<'_, '_, '_, true>`
note: required by a bound in `extract_argument`
= note: required for `Box<dyn std::error::Error + Send + Sync>` to implement `pyo3::impl_::extract_argument::PyFunctionArgument<'_, '_, '_, true>`
note: required by a bound in `pyo3::impl_::extract_argument::extract_argument`
--> src/impl_/extract_argument.rs
|
| pub fn extract_argument<'a, 'holder, 'py, T, const IMPLEMENTS_FROMPYOBJECT: bool>(
Expand All @@ -456,11 +456,11 @@ error[E0277]: `Box<dyn std::error::Error + Send + Sync>` cannot be used as a Pyt
--> tests/ui/invalid_pyclass_args.rs:205:12
|
205 | field: Box<dyn std::error::Error + Send + Sync>,
| ^^^ the trait `ExtractPyClassWithClone` is not implemented for `Box<dyn std::error::Error + Send + Sync>`
| ^^^ the trait `pyo3::impl_::pyclass::ExtractPyClassWithClone` is not implemented for `Box<dyn std::error::Error + Send + Sync>`
|
= note: implement `FromPyObject` to enable using `Box<dyn std::error::Error + Send + Sync>` as a function argument
= note: `Python<'py>` is also a valid argument type to pass the Python token into `#[pyfunction]`s and `#[pymethods]`
= help: the following other types implement trait `ExtractPyClassWithClone`:
= help: the following other types implement trait `pyo3::impl_::pyclass::ExtractPyClassWithClone`:
Coord
Coord2
Coord3
Expand All @@ -471,8 +471,8 @@ error[E0277]: `Box<dyn std::error::Error + Send + Sync>` cannot be used as a Pyt
NewFromFieldsWithManualNew
and $N others
= note: required for `Box<dyn std::error::Error + Send + Sync>` to implement `pyo3::FromPyObject<'_, '_>`
= note: required for `Box<dyn std::error::Error + Send + Sync>` to implement `PyFunctionArgument<'_, '_, '_, true>`
note: required by a bound in `extract_argument`
= note: required for `Box<dyn std::error::Error + Send + Sync>` to implement `pyo3::impl_::extract_argument::PyFunctionArgument<'_, '_, '_, true>`
note: required by a bound in `pyo3::impl_::extract_argument::extract_argument`
--> src/impl_/extract_argument.rs
|
| pub fn extract_argument<'a, 'holder, 'py, T, const IMPLEMENTS_FROMPYOBJECT: bool>(
Expand All @@ -487,30 +487,30 @@ error[E0277]: the trait bound `dyn std::error::Error + Send + Sync: Clone` is no
205 | field: Box<dyn std::error::Error + Send + Sync>,
| ^^^ the trait `Clone` is not implemented for `dyn std::error::Error + Send + Sync`
|
help: the following other types implement trait `PyFunctionArgument<'a, 'holder, 'py, IMPLEMENTS_FROMPYOBJECT>`
help: the following other types implement trait `pyo3::impl_::extract_argument::PyFunctionArgument<'a, 'holder, 'py, IMPLEMENTS_FROMPYOBJECT>`
--> src/impl_/extract_argument.rs
|
| / impl<'a, 'holder, 'py, T: 'a + 'py> PyFunctionArgument<'a, 'holder, 'py, false>
| | for &'holder Bound<'py, T>
| | where
| | T: PyTypeCheck,
| |___________________^ `&'holder pyo3::Bound<'py, T>` implements `PyFunctionArgument<'a, 'holder, 'py, false>`
| |___________________^ `&'holder pyo3::Bound<'py, T>` implements `pyo3::impl_::extract_argument::PyFunctionArgument<'a, 'holder, 'py, false>`
...
| / impl<'a, 'holder, 'py, T> PyFunctionArgument<'a, 'holder, 'py, false> for Option<T>
| | where
| | T: PyFunctionArgument<'a, 'holder, 'py, false>,
| |___________________________________________________^ `Option<T>` implements `PyFunctionArgument<'a, 'holder, 'py, false>`
| |___________________________________________________^ `Option<T>` implements `pyo3::impl_::extract_argument::PyFunctionArgument<'a, 'holder, 'py, false>`
...
| impl<'a, 'holder, T: PyClass> PyFunctionArgument<'a, 'holder, '_, false> for &'holder T {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `&'holder T` implements `PyFunctionArgument<'a, 'holder, '_, false>`
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `&'holder T` implements `pyo3::impl_::extract_argument::PyFunctionArgument<'a, 'holder, '_, false>`
...
| / impl<'a, 'holder, T: PyClass<Frozen = False>> PyFunctionArgument<'a, 'holder, '_, false>
| | for &'holder mut T
| |______________________^ `&'holder mut T` implements `PyFunctionArgument<'a, 'holder, '_, false>`
| |______________________^ `&'holder mut T` implements `pyo3::impl_::extract_argument::PyFunctionArgument<'a, 'holder, '_, false>`
= note: required for `Box<dyn std::error::Error + Send + Sync>` to implement `Clone`
= note: required for `Box<dyn std::error::Error + Send + Sync>` to implement `pyo3::FromPyObject<'_, '_>`
= note: required for `Box<dyn std::error::Error + Send + Sync>` to implement `PyFunctionArgument<'_, '_, '_, true>`
note: required by a bound in `extract_argument`
= note: required for `Box<dyn std::error::Error + Send + Sync>` to implement `pyo3::impl_::extract_argument::PyFunctionArgument<'_, '_, '_, true>`
note: required by a bound in `pyo3::impl_::extract_argument::extract_argument`
--> src/impl_/extract_argument.rs
|
| pub fn extract_argument<'a, 'holder, 'py, T, const IMPLEMENTS_FROMPYOBJECT: bool>(
Expand Down
8 changes: 4 additions & 4 deletions tests/ui/invalid_pyclass_generic.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ error[E0034]: multiple applicable items in scope
4 | #[pyclass(generic)]
| ^^^^^^^^^^^^^^^^^^^ multiple `wrap` found
|
= note: candidate #1 is defined in an impl for the type `IntoPyObjectConverter<Result<T, E>>`
= note: candidate #2 is defined in an impl for the type `IntoPyObjectConverter<T>`
= note: candidate #1 is defined in an impl for the type `pyo3::impl_::wrap::IntoPyObjectConverter<Result<T, E>>`
= note: candidate #2 is defined in an impl for the type `pyo3::impl_::wrap::IntoPyObjectConverter<T>`
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0308]: mismatched types
Expand Down Expand Up @@ -128,5 +128,5 @@ error[E0034]: multiple applicable items in scope
18 | ) -> PyResult<Py<PyAny>> {
| ^^^^^^^^ multiple `wrap` found
|
= note: candidate #1 is defined in an impl for the type `IntoPyObjectConverter<Result<T, E>>`
= note: candidate #2 is defined in an impl for the type `IntoPyObjectConverter<T>`
= note: candidate #1 is defined in an impl for the type `pyo3::impl_::wrap::IntoPyObjectConverter<Result<T, E>>`
= note: candidate #2 is defined in an impl for the type `pyo3::impl_::wrap::IntoPyObjectConverter<T>`
10 changes: 5 additions & 5 deletions tests/ui/invalid_pyclass_init.stderr
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
error[E0277]: the trait bound `i32: IntoPyCallbackOutput<'_, i32>` is not satisfied
error[E0277]: the trait bound `i32: pyo3::impl_::callback::IntoPyCallbackOutput<'_, i32>` is not satisfied
--> tests/ui/invalid_pyclass_init.rs:8:27
|
8 | fn __init__(&self) -> i32 {
| ^^^ the trait `IntoPyCallbackOutput<'_, i32>` is not implemented for `i32`
| ^^^ the trait `pyo3::impl_::callback::IntoPyCallbackOutput<'_, i32>` is not implemented for `i32`
|
help: the following other types implement trait `IntoPyCallbackOutput<'py, Target>`
help: the following other types implement trait `pyo3::impl_::callback::IntoPyCallbackOutput<'py, Target>`
--> src/impl_/callback.rs
|
| impl IntoPyCallbackOutput<'_, ffi::Py_ssize_t> for usize {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `usize` implements `IntoPyCallbackOutput<'_, isize>`
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `usize` implements `pyo3::impl_::callback::IntoPyCallbackOutput<'_, isize>`
...
| impl IntoPyCallbackOutput<'_, usize> for usize {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `usize` implements `IntoPyCallbackOutput<'_, usize>`
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `usize` implements `pyo3::impl_::callback::IntoPyCallbackOutput<'_, usize>`
Loading
Loading