Comments (2)
I’m not sure how I feel about this; in any case the @attr.s(repr=False)
would have to be renamed to @attr.s(repr_default=False
) and the logic changed such that it is detected whether a repr (et al) should be created by looking at all attributes instead of at the setting.
Gotta sleep over that. :)
from attrs.
So I’m not doing this for now because while it saves some typing, it feels like it adds cognitive complexity that makes it harder to understand and adds code complexity that doesn’t seem worth it…sorry.
from attrs.
Related Issues (20)
- Question: Validator Parameter Requirements HOT 1
- Possible regression with `attrs.asdict` related to type guarding? HOT 7
- `attrs` installs a module `attr` which collides with with the PyPI project `attr` HOT 5
- Docs for comparison (ordering) operators do not define their semantics HOT 1
- Use field *repr* callable to dynamically define repr based on instance value HOT 1
- Typing error when using `resolve_types` inside class method HOT 3
- Typing fails when list of validators where one is custom and one is built in HOT 5
- Support for generic type variables in loc, iloc, __getitem__, ... HOT 2
- `deep_iterable` and `deep_mapping` inconsistencies HOT 4
- `attr.Attributes` incompatible with `Literal` HOT 3
- Docs say converters only run on initialization, but they also affect attribute setting HOT 1
- import attr from attrs imports wrong package HOT 7
- Can't pickle a slotted class with missing attributes HOT 1
- New attrs release with Python 3.12 support HOT 2
- Multiple alternatives validator HOT 1
- Feature request: Option for "soft" frozen classes in attrs? HOT 5
- Using `cached_property` results in undesired references HOT 2
- attrs classes which inherit from slotted non-attrs classes do not inherit their bases' slots HOT 1
- asdict does not call value_serializer on attrs objects in containers HOT 3
- Supervisor and owner and CEO, light cafe net
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from attrs.