Update pyo3 to v0.22 and update code to use pyo3 Bound
types
#677
python.yml
on: pull_request
get-version
3s
Release
0s
Annotations
23 errors and 16 warnings
mismatched types:
src/types/from.rs#L156
error[E0308]: mismatched types
--> src/types/from.rs:156:21
|
127 | match value.get_type().name()? {
| ------------------------ this expression has type `std::borrow::Cow<'_, str>`
...
156 | "int" | "float" => {
| ^^^^^^^ expected `Cow<'_, str>`, found `&str`
|
= note: expected enum `std::borrow::Cow<'_, str>`
found reference `&'static str`
help: try wrapping the pattern in `std::borrow::Cow::Borrowed`
|
156 | "int" | std::borrow::Cow::Borrowed("float") => {
| +++++++++++++++++++++++++++ +
|
mismatched types:
src/types/from.rs#L156
error[E0308]: mismatched types
--> src/types/from.rs:156:13
|
127 | match value.get_type().name()? {
| ------------------------ this expression has type `std::borrow::Cow<'_, str>`
...
156 | "int" | "float" => {
| ^^^^^ expected `Cow<'_, str>`, found `&str`
|
= note: expected enum `std::borrow::Cow<'_, str>`
found reference `&'static str`
help: try wrapping the pattern in `std::borrow::Cow::Borrowed`
|
156 | std::borrow::Cow::Borrowed("int") | "float" => {
| +++++++++++++++++++++++++++ +
|
mismatched types:
src/types/from.rs#L152
error[E0308]: mismatched types
--> src/types/from.rs:152:13
|
127 | match value.get_type().name()? {
| ------------------------ this expression has type `std::borrow::Cow<'_, str>`
...
152 | "bool" => {
| ^^^^^^ expected `Cow<'_, str>`, found `&str`
|
= note: expected enum `std::borrow::Cow<'_, str>`
found reference `&'static str`
help: try wrapping the pattern in `std::borrow::Cow::Borrowed`
|
152 | std::borrow::Cow::Borrowed("bool") => {
| +++++++++++++++++++++++++++ +
|
mismatched types:
src/types/from.rs#L140
error[E0308]: mismatched types
--> src/types/from.rs:140:13
|
127 | match value.get_type().name()? {
| ------------------------ this expression has type `std::borrow::Cow<'_, str>`
...
140 | "dict" => {
| ^^^^^^ expected `Cow<'_, str>`, found `&str`
|
= note: expected enum `std::borrow::Cow<'_, str>`
found reference `&'static str`
help: try wrapping the pattern in `std::borrow::Cow::Borrowed`
|
140 | std::borrow::Cow::Borrowed("dict") => {
| +++++++++++++++++++++++++++ +
|
mismatched types:
src/types/from.rs#L132
error[E0308]: mismatched types
--> src/types/from.rs:132:13
|
127 | match value.get_type().name()? {
| ------------------------ this expression has type `std::borrow::Cow<'_, str>`
...
132 | "list" => {
| ^^^^^^ expected `Cow<'_, str>`, found `&str`
|
= note: expected enum `std::borrow::Cow<'_, str>`
found reference `&'static str`
help: try wrapping the pattern in `std::borrow::Cow::Borrowed`
|
132 | std::borrow::Cow::Borrowed("list") => {
| +++++++++++++++++++++++++++ +
|
mismatched types:
src/types/from.rs#L128
error[E0308]: mismatched types
--> src/types/from.rs:128:13
|
127 | match value.get_type().name()? {
| ------------------------ this expression has type `std::borrow::Cow<'_, str>`
128 | "str" => {
| ^^^^^ expected `Cow<'_, str>`, found `&str`
|
= note: expected enum `std::borrow::Cow<'_, str>`
found reference `&'static str`
help: try wrapping the pattern in `std::borrow::Cow::Borrowed`
|
128 | std::borrow::Cow::Borrowed("str") => {
| +++++++++++++++++++++++++++ +
|
macos (x86_64)
The process '/Users/runner/work/_temp/53f5bdff-d1f0-4cef-82ad-b6a67aaccbd9/maturin' failed with exit code 1
|
macos (aarch64)
The job was canceled because "x86_64" failed.
|
macos (aarch64)
The operation was canceled.
|
linux (aarch64)
The process '/usr/bin/docker' failed with exit code 1
|
linux (ppc64le)
The job was canceled because "aarch64" failed.
|
linux (ppc64le)
The process '/usr/bin/docker' failed with exit code 1
|
linux (s390x)
The job was canceled because "aarch64" failed.
|
linux (s390x)
The process '/usr/bin/docker' failed with exit code 1
|
linux (x86_64)
The job was canceled because "aarch64" failed.
|
linux (x86_64)
The operation was canceled.
|
linux (x86)
The job was canceled because "aarch64" failed.
|
linux (x86)
The operation was canceled.
|
linux (armv7)
The job was canceled because "aarch64" failed.
|
linux (armv7)
The operation was canceled.
|
windows (x64)
The process 'D:\a\_temp\1834a7b8-e72b-4b94-a2aa-f2eb669a2784\maturin.exe' failed with exit code 1
|
windows (x86)
The job was canceled because "x64" failed.
|
windows (x86)
The operation was canceled.
|
use of deprecated method `pyo3::deprecations::GilRefs::<T>::function_arg`: use `&Bound<'_, T>` instead for this function argument:
src/lib.rs#L411
warning: use of deprecated method `pyo3::deprecations::GilRefs::<T>::function_arg`: use `&Bound<'_, T>` instead for this function argument
--> src/lib.rs:411:28
|
411 | fn reclass_rs(_py: Python, m: &PyModule) -> PyResult<()> {
| ^
|
use of deprecated method `pyo3::deprecations::GilRefs::<T>::function_arg`: use `&Bound<'_, T>` instead for this function argument:
src/lib.rs#L342
warning: use of deprecated method `pyo3::deprecations::GilRefs::<T>::function_arg`: use `&Bound<'_, T>` instead for this function argument
--> src/lib.rs:342:35
|
342 | pub fn set_thread_count(_cls: &PyType, count: usize) {
| ^
|
use of deprecated method `pyo3::deprecations::GilRefs::<T>::function_arg`: use `&Bound<'_, T>` instead for this function argument:
src/lib.rs#L314
warning: use of deprecated method `pyo3::deprecations::GilRefs::<T>::function_arg`: use `&Bound<'_, T>` instead for this function argument
--> src/lib.rs:314:26
|
314 | fn from_config(_cls: &PyType, config: Config) -> PyResult<Self> {
| ^
|
use of deprecated method `pyo3::deprecations::GilRefs::<T>::function_arg`: use `&Bound<'_, T>` instead for this function argument:
src/lib.rs#L298
warning: use of deprecated method `pyo3::deprecations::GilRefs::<T>::function_arg`: use `&Bound<'_, T>` instead for this function argument
--> src/lib.rs:298:14
|
298 | cls: &PyType,
| ^
|
use of deprecated associated function `pyo3::types::PyDict::new`: `PyDict::new` will be replaced by `PyDict::new_bound` in a future PyO3 version:
src/types/mapping.rs#L359
warning: use of deprecated associated function `pyo3::types::PyDict::new`: `PyDict::new` will be replaced by `PyDict::new_bound` in a future PyO3 version
--> src/types/mapping.rs:359:28
|
359 | let dict = PyDict::new(py);
| ^^^
|
use of deprecated associated function `pyo3::types::PyDict::new`: `PyDict::new` will be replaced by `PyDict::new_bound` in a future PyO3 version:
src/node/nodeinfo.rs#L192
warning: use of deprecated associated function `pyo3::types::PyDict::new`: `PyDict::new` will be replaced by `PyDict::new_bound` in a future PyO3 version
--> src/node/nodeinfo.rs:192:28
|
192 | let dict = PyDict::new(py);
| ^^^
|
use of deprecated associated function `pyo3::types::PyDict::new`: `PyDict::new` will be replaced by `PyDict::new_bound` in a future PyO3 version:
src/node/nodeinfo.rs#L180
warning: use of deprecated associated function `pyo3::types::PyDict::new`: `PyDict::new` will be replaced by `PyDict::new_bound` in a future PyO3 version
--> src/node/nodeinfo.rs:180:28
|
180 | let dict = PyDict::new(py);
| ^^^
|
use of deprecated associated function `pyo3::types::PyDict::new`: `PyDict::new` will be replaced by `PyDict::new_bound` in a future PyO3 version:
src/inventory.rs#L89
warning: use of deprecated associated function `pyo3::types::PyDict::new`: `PyDict::new` will be replaced by `PyDict::new_bound` in a future PyO3 version
--> src/inventory.rs:89:36
|
89 | let reclass_dict = PyDict::new(py);
| ^^^
|
use of deprecated associated function `pyo3::types::PyDict::new`: `PyDict::new` will be replaced by `PyDict::new_bound` in a future PyO3 version:
src/inventory.rs#L83
warning: use of deprecated associated function `pyo3::types::PyDict::new`: `PyDict::new` will be replaced by `PyDict::new_bound` in a future PyO3 version
--> src/inventory.rs:83:34
|
83 | let nodes_dict = PyDict::new(py);
| ^^^
|
use of deprecated associated function `pyo3::types::PyDict::new`: `PyDict::new` will be replaced by `PyDict::new_bound` in a future PyO3 version:
src/inventory.rs#L80
warning: use of deprecated associated function `pyo3::types::PyDict::new`: `PyDict::new` will be replaced by `PyDict::new_bound` in a future PyO3 version
--> src/inventory.rs:80:28
|
80 | let dict = PyDict::new(py);
| ^^^
|
use of deprecated method `pyo3::deprecations::GilRefs::<T>::function_arg`: use `&Bound<'_, T>` instead for this function argument:
src/config.rs#L284
warning: use of deprecated method `pyo3::deprecations::GilRefs::<T>::function_arg`: use `&Bound<'_, T>` instead for this function argument
--> src/config.rs:284:15
|
284 | _cls: &PyType,
| ^
|
use of deprecated method `pyo3::deprecations::GilRefs::<T>::function_arg`: use `&Bound<'_, T>` instead for this function argument:
src/config.rs#L286
warning: use of deprecated method `pyo3::deprecations::GilRefs::<T>::function_arg`: use `&Bound<'_, T>` instead for this function argument
--> src/config.rs:286:17
|
286 | config: &PyDict,
| ^
|
= note: `#[warn(deprecated)]` on by default
|
sdist
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
macos (x86_64)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
linux (aarch64)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
windows (x64)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
wheels-sdist
Expired
|
75.9 KB |
|