-
-
Notifications
You must be signed in to change notification settings - Fork 383
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
Add attr.define/mutable/frozen #666
Conversation
Prepare for import attrs y'all! Signed-off-by: Hynek Schlawack <[email protected]>
My wishes:
|
To be clear, I'm only looking for stuff that we might paint ourselves into the corner. Most of what you listed can be fixed at any time.
|
This is going be the next-gen name anyways, so no need to introduce new names. Signed-off-by: Hynek Schlawack <[email protected]>
:( it is how it is then. anyway, everybody needs different defaults
well, kinda. if it will be
Doesn't matter much, define works as well.
Nice. Never noticed it. Maybe, missed in the docs and then didn't recognize it with autocomplete. The name feels a bot misleading to guess what it does straight away. Thanks for educating me on this:)
Well, maybe the next point will help with it. However, it feels like it's not that complex and it would fully complement
Fair enough. Shall I describe the idea in a separate issue?
Making this work with fewer tricks would help. Docs are good, though:) Thanks and keep up the good work! |
Yeah, it's prob gonna be
Sure!
💛 |
This is neat. I will have to spend some time fixing the mypy plugin to get these to work. |
Not sure if sarcasm. ;)
Do the annotations look OK so far? I don't think I can do anymore than release and wait for mypy, correct? |
Not sarcasm, I'm excited to not have to confuse people in my team with |
I guess there's no point in procrastinating on this any further…merging and if nobody yells at me, I'll release 20.1 tomorrow. |
Prepare for import attrs y'all!
This is basically what we kinda agreed on in #408 and #487.
I'm open to comments and suggestions.
Also suggestions how to supply type stubs without a major copy/paste operation. 😳