From 68fea44f55c212032ce9bb748f1ad27e93d471eb Mon Sep 17 00:00:00 2001 From: haimingZZ Date: Mon, 21 Sep 2026 12:10:09 +0800 Subject: [PATCH] docs/fix: remove duplicated words in docs and source comment - docs/api.rst: drop duplicated 'from' in exception namespace sentence - src/attr/_make.py: drop duplicated 'picked' in alias auto-generation comment The attrs CONTRIBUTING guide encourages submitting typos and grammar fixes, so these minor word-repetition fixes are welcome. They are isolated to comments and prose, so no tests or behavior changes are required. --- docs/api.rst | 2 +- src/attr/_make.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api.rst b/docs/api.rst index 42b87f7a7..562d7e5f8 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -102,7 +102,7 @@ Exceptions .. module:: attrs.exceptions All exceptions are available from both ``attr.exceptions`` and ``attrs.exceptions`` and are the same thing. -That means that it doesn't matter from from which namespace they've been raised and/or caught: +That means that it doesn't matter from which namespace they've been raised and/or caught: .. doctest:: diff --git a/src/attr/_make.py b/src/attr/_make.py index afbca4635..e5b3760c1 100644 --- a/src/attr/_make.py +++ b/src/attr/_make.py @@ -2649,7 +2649,7 @@ def evolve(self, **changes): elif ( "name" in changes and "alias" not in changes - # Don't auto-generate alias if the user picked picked the old one. + # Don't auto-generate alias if the user picked the old one. and self.alias_is_default ): # Name changed, alias was auto-generated -- update it.