Skip to content

Replace __slots__ = (field1,field2,...) with slots=True #4086

Closed

Description

@Fokko

Feature Request / Improvement

With Python 3.10 we don't have to manually set the slots. Instead, we can just set slots=True on the dataclass itself.

https://docs.python.org/3/library/dataclasses.html

Activity

  1. med9110 commented on Oct 7, 2026

    @med9110
    Contributor

    Hi,
    I'd like to work on this issue as my first contribution to PyIceberg.

  2. Fokko commented on Oct 7, 2026

    @Fokko
    ContributorAuthor

    @med9110 you're more than welcome to pick this up 👍

  3. med9110 commented on Oct 8, 2026

    @med9110
    Contributor

    I ve opened #4091 to address this
    Thanks for the encouragement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions