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

Fix: TypeError when using properties, super(), and slots=True (#652) #747

Merged
merged 1 commit into from
Jan 11, 2021

Conversation

kwist-sgr
Copy link
Contributor

@kwist-sgr kwist-sgr commented Jan 8, 2021

Pull Request Check List

This is just a friendly reminder about the most common mistakes. Please make sure that you tick all boxes. But please read our contribution guide at least once, it will save you unnecessary review cycles!

If an item doesn't apply to your pull request, check it anyway to make it apparent that there's nothing left to do. If your pull request is a documentation fix or a trivial typo, feel free to delete the whole thing.

  • Added tests for changed code.
  • New features have been added to our Hypothesis testing strategy. [N/A]
  • Changes or additions to public APIs are reflected in our type stubs (files ending in .pyi). [N/A]
    • ...and used in the stub test file tests/typing_example.py. [N/A]
  • Updated documentation for changed code. [N/A]
    • New functions/classes have to be added to docs/api.rst by hand. [N/A]
    • Changes to the signature of @attr.s() have to be added by hand too. [N/A]
    • Changed/added classes/methods/functions have appropriate versionadded, versionchanged, or deprecated directives. Find the appropriate next version in our __init__.py file. [N/A]
  • Documentation in .rst files is written using semantic newlines.
  • Changes (and possible deprecations) have news fragments in changelog.d.

If you have any questions to any of the points above, just submit and ask! This checklist is here to help you, not to deter you from contributing!

kwist-sgr added a commit to kwist-sgr/attrs that referenced this pull request Jan 8, 2021
@kwist-sgr kwist-sgr marked this pull request as ready for review January 8, 2021 11:56
@kwist-sgr kwist-sgr force-pushed the issue_652 branch 2 times, most recently from 99d6348 to dcfd94f Compare January 10, 2021 12:40
Copy link

@taliastocks taliastocks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, I just ran into this bug....

Copy link
Member

@hynek hynek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The troubles we go through to support slotted classes will never end.

I'm not sure I can grasp the full impact but since it passes our tests, I guess we should merge it. 😅

@hynek hynek merged commit 9de675f into python-attrs:master Jan 11, 2021
@hynek
Copy link
Member

hynek commented Jan 11, 2021

Thanks!

@kwist-sgr kwist-sgr deleted the issue_652 branch January 11, 2021 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants