attrs
attrs copied to clipboard
Python Classes Without Boilerplate
Not sure if this is a duplicate but I couldn't find the problem in the open issues. If I overlooked it, please close, of course. ```python from attrs import define,...
With attrs 24.2.0 and 23.2.0, if you use `cached_property` and try to override it in a child, and access the parent value, you get an `AttributeError`. We ran into this...
Hi @hynek, great to see that version `24.1.0` is finally out, have been looking forward to it for quite a while 👍🏼 🙃 One reason why I was waiting for...
Hi there, I might have missed something. If I have my apologies. My question is pretty basic: is there a way to add a docstring to class created with `make_class`?...
Python 3.13 introduced the `__replace__` dunder, exposed via [`copy.replace`](https://docs.python.org/3.13/library/copy.html#copy.replace), as a [generalised method](https://discuss.python.org/t/generalize-replace-function/28511) through which to replace fields in immutable dataclass-likes. Would you be interested in supporting it in addition...
Python version: 3.12.5 attrs version: 23.2.0 pylance version: v2024.10.1 code: ```python import attrs @attrs.define class MyClass: x: int def __init__(self, x: int): self.__attrs_init__(x) # ^^^^^^^^^^ # Cannot access attribute "__attrs_init__"...
I think the METADATA files distributed with `attrs` versions 23.2.0 and 24.2.0 specify a `Metadata-Version` that is too low for the keys they contain. According to [the METADATA specification](https://packaging.python.org/en/latest/specifications/core-metadata/#license-expression), the...
This is currently more of an open experiment to find out what's missing in uv for FOSS projects. The first obvious problem is that it locks the local version of...
So I introduced NothingType, but from what I can tell we're not using this anywhere? This is solely for the benefit of third parties annotating their code to accept NOTHING?
…tattr # Summary # Pull Request Check List - [ ] Do **not** open pull requests from your `main` branch – **use a separate branch**! - There's a ton of...