Skip to content

Throw exception on item and attribute annotations on tuple struct #2185

@ricohageman

Description

@ricohageman

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 #2181 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions