Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Add support for attrs.fields (#15021)" #15393

Closed
wants to merge 1 commit into from

Commits on Jun 8, 2023

  1. Revert "Add support for attrs.fields (python#15021)"

    This reverts commit 391ed85.
    
    The use of a Union item type for `attr.Attribute` would likely be
    more useful to callsites of `attr.fields` - otherwise this currently
    results in inferring `builtins.object` in many cases where we treat
    the fields as a variable-length tuple, rather than a fixed-length
    one. Applications of the fixed-length tuple seem limited since you
    would need to access it by index.
    
    @Tinche as the original author of the commit.
    jhance committed Jun 8, 2023
    Configuration menu
    Copy the full SHA
    46c873a View commit details
    Browse the repository at this point in the history