attrs icon indicating copy to clipboard operation
attrs copied to clipboard

Python Classes Without Boilerplate

Results 166 attrs issues
Sort by recently updated
recently updated
newest added

When I use multiple callables with the `converter` argument in `field`, I get an error from `mypy`. Here is a simple example of what I'm trying to do. ```py #...

pin in https://github.com/python-attrs/attrs/commit/46f1f35896e980d4c0f33511fa700fa59ac2299d

Pin in https://github.com/python-attrs/attrs/commit/46f1f35896e980d4c0f33511fa700fa59ac2299d

Good for New Contributors

This allows to wrap converters into classes and pass them the instance that is being initialized and the field for which the value is converted. Things open: - [ ]...

Hi, I'm not sure if this has been already discussed in some other context (and please just close if this is a duplicate) but I was wondering if there is...

Typing

Having users directed to the `attrs` issue tracker with `pyright` type-checking issues described as bugs in attrs doesn't feel great. _Originally posted by @hynek in https://github.com/python-attrs/attrs/issues/1170#issuecomment-1872498822_ There are variety of...

`make_class()` currently doesn't touch the `__annotations__` dict when it creates a new class. This can become a problem when a class is created dynamically with unresolved types. And when `__annotations__`...

Hi there, First, thanks for an amazing project! Words can't express how much attrs has changed my programming career for the better. I have found that I often write some...

Feature

Sorry if this is a dumb question, I have read the [docs section on validators](https://www.attrs.org/en/stable/init.html#validators) and searched the github issues, but did not find an answer... Is there a way...

*I am filing the below not really having through details, though I at least don't see this mentioned in any other issue, hence splatting it out :). Spicy takes I'm...

Typing