From 5f1d588a66535dacb2c03a9ddc1f4f0ee3b1c2ee Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Mon, 9 Oct 2023 14:24:30 +0200 Subject: [PATCH] doc: invert sentence on setattr logic in NG Even I missed it. --- .pre-commit-config.yaml | 2 +- src/attr/_next_gen.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3b1b0580e..78c1e44a7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: args: [tests] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer diff --git a/src/attr/_next_gen.py b/src/attr/_next_gen.py index 8b44e8b3f..1fb9f259b 100644 --- a/src/attr/_next_gen.py +++ b/src/attr/_next_gen.py @@ -52,8 +52,8 @@ def define( - Automatically detect whether or not *auto_attribs* should be `True` (c.f. *auto_attribs* parameter). - - If *frozen* is `False`, run converters and validators when setting an - attribute by default. + - Converters and validators run when attributes are set by default -- if + *frozen* is `False`. - *slots=True* .. caution::