pyo3 icon indicating copy to clipboard operation
pyo3 copied to clipboard

Throw exception on item and attribute annotations on tuple struct

Open ricohageman opened this issue 3 years ago • 0 comments

Quick question on this: should we be allowing #[pyo3(item)] here? Is there any reasonable interpretation beside the elements always being item 0, item 1, item 2 etc?

I wonder if we want to consider throwing an error if #[pyo3(item)] or #[pyo3(attribute)] are used on tuple struct elements.

Originally posted by @davidhewitt in https://github.com/PyO3/pyo3/pull/2181#discussion_r814210259

ricohageman avatar Feb 24 '22 21:02 ricohageman