Contents

attrs 24.2.0

0

Classes Without Boilerplate

Classes Without Boilerplate

Stars: 5259, Watchers: 5259, Forks: 367, Open Issues: 139

The python-attrs/attrs repo was created 9 years ago and the last code push was 2 days ago.
The project is extremely popular with a mindblowing 5259 github stars!

How to Install attrs

You can install attrs using pip

pip install attrs

or add it to a project with poetry

poetry add attrs

Package Details

Author
None
License
None
Homepage
None
PyPi:
https://pypi.org/project/attrs/
Documentation:
https://www.attrs.org/
GitHub Repo:
https://github.com/python-attrs/attrs

Classifiers

No  attrs  pypi packages just yet.

Errors

A list of common attrs errors.

Code Examples

Here are some attrs code examples and snippets.

GitHub Issues

The attrs package has 139 open issues on GitHub

  • Deduplicate annotation extraction
  • Fix set_closure_cell on 3.11
  • Fix hashing for custom eq objects
  • Compatibility with Python 3.11
  • more visibility for 21.3.0 breaking change
  • Mypy error "Cannot determine init type from converter" when using type checking, overloads and converters
  • Mypy improvements
  • mypy returns "Incompatible types in assignment" with on_setattr=setters.convert
  • Type annotation for attr.ib wrappers functions
  • [RFC] Add optional automatic validation and conversion
  • Option to "partially override" an attribute from a parent class?
  • Accessing @attr.s() decorator parameter values
  • Store attribute name used in init parameters
  • Add decorator option for converters
  • Self documentation - current state

See more issues on GitHub

Related Packages & Articles