Skip to content

Commit 696fd78

Browse files
committed
Hyphenate compound adjectives
1 parent 65c0683 commit 696fd78

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ Deprecations:
940940
This will remove the confusing error message if you write your own ``__init__`` and forget to initialize some attribute.
941941
Instead you will get a straightforward ``AttributeError``.
942942
In other words: decorated classes will work more like plain Python classes which was always ``attrs``'s goal.
943-
- The serious business aliases ``attr.attributes`` and ``attr.attr`` have been deprecated in favor of ``attr.attrs`` and ``attr.attrib`` which are much more consistent and frankly obvious in hindsight.
943+
- The serious-business aliases ``attr.attributes`` and ``attr.attr`` have been deprecated in favor of ``attr.attrs`` and ``attr.attrib`` which are much more consistent and frankly obvious in hindsight.
944944
They will be purged from documentation immediately but there are no plans to actually remove them.
945945

946946

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Simply assign ``attrs.field()`` to the attributes instead of annotating them wit
8686
----
8787

8888
This example uses ``attrs``'s modern APIs that have been introduced in version 20.1.0, and the ``attrs`` package import name that has been added in version 21.3.0.
89-
The classic APIs (``@attr.s``, ``attr.ib``, plus their serious business aliases) and the ``attr`` package import name will remain **indefinitely**.
89+
The classic APIs (``@attr.s``, ``attr.ib``, plus their serious-business aliases) and the ``attr`` package import name will remain **indefinitely**.
9090

9191
Please check out `On The Core API Names <https://www.attrs.org/en/latest/names.html>`_ for a more in-depth explanation.
9292

docs/api.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Classic
124124

125125
.. note::
126126

127-
``attrs`` also comes with a serious business alias ``attr.attrs``.
127+
``attrs`` also comes with a serious-business alias ``attr.attrs``.
128128

129129
For example:
130130

@@ -164,7 +164,7 @@ Classic
164164

165165
.. note::
166166

167-
``attrs`` also comes with a serious business alias ``attr.attrib``.
167+
``attrs`` also comes with a serious-business alias ``attr.attrib``.
168168

169169
The object returned by `attr.ib` also allows for setting the default and the validator using decorators:
170170

@@ -842,7 +842,7 @@ It behaves similarly to `sys.version_info` and is an instance of `VersionInfo`:
842842

843843
----
844844

845-
The serious business aliases used to be called ``attr.attributes`` and ``attr.attr``.
845+
The serious-business aliases used to be called ``attr.attributes`` and ``attr.attr``.
846846
There are no plans to remove them but they shouldn't be used in new code.
847847

848848
.. autofunction:: assoc

docs/names.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ They are only available in Python 3.6 and later.
2323
Sometimes they're referred to as *next-generation* or *NG* APIs.
2424
As of ``attrs`` 21.3.0 you can also import them from the ``attrs`` package namespace.
2525

26-
The traditional APIs `attr.s` / `attr.ib`, their serious business aliases ``attr.attrs`` / ``attr.attrib``, and the never-documented, but popular ``attr.dataclass`` easter egg will stay **forever**.
26+
The traditional APIs `attr.s` / `attr.ib`, their serious-business aliases ``attr.attrs`` / ``attr.attrib``, and the never-documented, but popular ``attr.dataclass`` easter egg will stay **forever**.
2727

2828
``attrs`` will **never** force you to use type annotations.
2929

tests/test_next_gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: MIT
22

33
"""
4-
Python 3-only integration tests for provisional next generation APIs.
4+
Python 3-only integration tests for provisional next-generation APIs.
55
"""
66

77
import re

0 commit comments

Comments
 (0)