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.