pyo3/tests
Icxolu ee89b2e8e2
deprecate `wrap_pyfunction` with `py` argument (#3954)
* deprecate `wrap_pyfunction` with `py` argument

The Python token in `wrap_pyfunction` is not handled automatically by
`WrapPyFunctionArg`, for backwards compatibility. This uses deref
specialization to deprecate this variant.

* merge `Extractor`s

* add deprecation ui test, revert closure variant due to test failure

* fix nightly
2024-03-12 22:57:03 +00:00
..
ui deprecate `wrap_pyfunction` with `py` argument (#3954) 2024-03-12 22:57:03 +00:00
test_anyhow.rs deprecate `wrap_pyfunction` with `py` argument (#3954) 2024-03-12 22:57:03 +00:00
test_append_to_inittab.rs Use single-arg form of `#[pymodule]` function in docs and tests (#3899) 2024-02-28 22:36:50 +00:00
test_arithmetics.rs deprecate `PyCell::new` in favor of `Py::new` or `Bound::new` (#3872) 2024-02-20 07:45:47 +00:00
test_buffer.rs fix `AsRef` and `Deref` impls on `Bound<T>` (#3879) 2024-02-22 22:38:42 +00:00
test_buffer_protocol.rs deprecate the use of `PyCell` in favor of `Bound` and `Py` (#3916) 2024-03-03 14:47:25 +00:00
test_bytes.rs deprecate `wrap_pyfunction` with `py` argument (#3954) 2024-03-12 22:57:03 +00:00
test_class_attributes.rs port `Python::get_type` to `Bound` API (#3846) 2024-02-18 18:27:19 +00:00
test_class_basics.rs deprecate gil-refs in "self" position (#3943) 2024-03-09 09:52:12 +00:00
test_class_conversion.rs add `FromPyObjectBound` trait for extracting `&str` without GIL Refs (#3928) 2024-03-08 07:43:48 +00:00
test_class_new.rs deprecate the use of `PyCell` in favor of `Bound` and `Py` (#3916) 2024-03-03 14:47:25 +00:00
test_compile_error.rs add `FromPyObjectBound` trait for extracting `&str` without GIL Refs (#3928) 2024-03-08 07:43:48 +00:00
test_coroutine.rs deprecate `wrap_pyfunction` with `py` argument (#3954) 2024-03-12 22:57:03 +00:00
test_datetime.rs port `Python::import` to `Bound` API (#3832) 2024-02-14 00:24:37 +00:00
test_datetime_import.rs port `Python::import` to `Bound` API (#3832) 2024-02-14 00:24:37 +00:00
test_declarative_module.rs PyAddToModule: Properly propagate initialization error (#3919) 2024-03-06 18:20:02 +00:00
test_default_impls.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_dict_iter.rs port `IntoPyDict` to `Bound` API 2024-02-10 15:47:26 +01:00
test_enum.rs deprecate `wrap_pyfunction` with `py` argument (#3954) 2024-03-12 22:57:03 +00:00
test_exceptions.rs deprecate `wrap_pyfunction` with `py` argument (#3954) 2024-03-12 22:57:03 +00:00
test_field_cfg.rs fix `AsRef` and `Deref` impls on `Bound<T>` (#3879) 2024-02-22 22:38:42 +00:00
test_frompyobject.rs update `#[derive(FromPyObject)]` to use `extract_bound` (#3828) 2024-02-13 00:09:41 +00:00
test_gc.rs deprecate `PyCell::new` in favor of `Py::new` or `Bound::new` (#3872) 2024-02-20 07:45:47 +00:00
test_getter_setter.rs port `Python::get_type` to `Bound` API (#3846) 2024-02-18 18:27:19 +00:00
test_inheritance.rs fix `AsRef` and `Deref` impls on `Bound<T>` (#3879) 2024-02-22 22:38:42 +00:00
test_macro_docs.rs port `Python::get_type` to `Bound` API (#3846) 2024-02-18 18:27:19 +00:00
test_macros.rs deprecate `wrap_pyfunction` with `py` argument (#3954) 2024-03-12 22:57:03 +00:00
test_mapping.rs fix `AsRef` and `Deref` impls on `Bound<T>` (#3879) 2024-02-22 22:38:42 +00:00
test_methods.rs deprecate `wrap_pyfunction` with `py` argument (#3954) 2024-03-12 22:57:03 +00:00
test_module.rs deprecate gil-refs in "self" position (#3943) 2024-03-09 09:52:12 +00:00
test_multiple_pymethods.rs port `Python::get_type` to `Bound` API (#3846) 2024-02-18 18:27:19 +00:00
test_no_imports.rs deprecate `&PyModule` as `#[pymodule]` argument type (#3936) 2024-03-08 00:28:11 +00:00
test_proto_methods.rs fix `AsRef` and `Deref` impls on `Bound<T>` (#3879) 2024-02-22 22:38:42 +00:00
test_pyfunction.rs deprecate `wrap_pyfunction` with `py` argument (#3954) 2024-03-12 22:57:03 +00:00
test_pyself.rs deprecate the use of `PyCell` in favor of `Bound` and `Py` (#3916) 2024-03-03 14:47:25 +00:00
test_sequence.rs deprecate `PyCell::new` in favor of `Py::new` or `Bound::new` (#3872) 2024-02-20 07:45:47 +00:00
test_serde.rs fix test-serde beta clippy warning 2023-11-28 07:29:45 +00:00
test_static_slots.rs port `Python::get_type` to `Bound` API (#3846) 2024-02-18 18:27:19 +00:00
test_string.rs deprecate `wrap_pyfunction` with `py` argument (#3954) 2024-03-12 22:57:03 +00:00
test_super.rs deprecate the use of `PyCell` in favor of `Bound` and `Py` (#3916) 2024-03-03 14:47:25 +00:00
test_text_signature.rs deprecate `wrap_pyfunction` with `py` argument (#3954) 2024-03-12 22:57:03 +00:00
test_unsendable_dict.rs Use Python:;with_gil in tests 2022-07-19 19:34:23 +02:00
test_variable_arguments.rs port `Python::get_type` to `Bound` API (#3846) 2024-02-18 18:27:19 +00:00
test_various.rs deprecate `wrap_pyfunction` with `py` argument (#3954) 2024-03-12 22:57:03 +00:00
test_wrap_pyfunction_deduction.rs deprecate `wrap_pyfunction` with `py` argument (#3954) 2024-03-12 22:57:03 +00:00