Consistency for slotted classes
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 5eceee1..0180fd7 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/ambv/black
- rev: 18.9b0
+ rev: 19.3b0
hooks:
- id: black
language_version: python3.7
@@ -20,7 +20,7 @@
- id: seed-isort-config
- repo: https://github.com/pre-commit/mirrors-isort
- rev: v4.3.12
+ rev: v4.3.15
hooks:
- id: isort
language_version: python3.7
diff --git a/tests/strategies.py b/tests/strategies.py
index d66a2c1..1ebb9e4 100644
--- a/tests/strategies.py
+++ b/tests/strategies.py
@@ -165,7 +165,7 @@
By default, all combinations of slots, frozen, and weakref_slot classes
will be generated. If `slots=True` is passed in, only slotted classes will
- be generated, and if `slots=False` is passed in, no slot classes will be
+ be generated, and if `slots=False` is passed in, no slotted classes will be
generated. The same applies to `frozen` and `weakref_slot`.
By default, some attributes will be private (i.e. prefixed with an
diff --git a/tests/test_dark_magic.py b/tests/test_dark_magic.py
index bac2a01..49477a9 100644
--- a/tests/test_dark_magic.py
+++ b/tests/test_dark_magic.py
@@ -154,7 +154,7 @@
with pytest.raises(TypeError) as e:
cls("1", 2)
- # Using C1 explicitly, since slot classes don't support this.
+ # Using C1 explicitly, since slotted classes don't support this.
assert (
"'x' must be <{type} 'int'> (got '1' that is a <{type} "
"'str'>).".format(type=TYPE),
diff --git a/tests/test_slots.py b/tests/test_slots.py
index 7e78eb6..f8007e3 100644
--- a/tests/test_slots.py
+++ b/tests/test_slots.py
@@ -1,5 +1,5 @@
"""
-Unit tests for slot-related functionality.
+Unit tests for slots-related functionality.
"""
import weakref
@@ -125,7 +125,7 @@
def test_inheritance_from_nonslots():
"""
- Inheritance from a non-slot class works.
+ Inheritance from a non-slotted class works.
Note that a slotted class inheriting from an ordinary class loses most of
the benefits of slotted classes, but it should still work.
@@ -224,7 +224,7 @@
def test_inheritance_from_slots():
"""
- Inheriting from an attr slot class works.
+ Inheriting from an attrs slotted class works.
"""
@attr.s(slots=True, hash=True)
@@ -267,7 +267,7 @@
def test_bare_inheritance_from_slots():
"""
- Inheriting from a bare attr slot class works.
+ Inheriting from a bare attrs slotted class works.
"""
@attr.s(init=False, cmp=False, hash=False, repr=False, slots=True)
@@ -342,7 +342,7 @@
class TestClosureCellRewriting(object):
def test_closure_cell_rewriting(self):
"""
- Slot classes support proper closure cell rewriting.
+ Slotted classes support proper closure cell rewriting.
This affects features like `__class__` and the no-arg super().
"""
@@ -358,7 +358,7 @@
def test_inheritance(self):
"""
- Slot classes support proper closure cell rewriting when inheriting.
+ Slotted classes support proper closure cell rewriting when inheriting.
This affects features like `__class__` and the no-arg super().
"""
@@ -389,7 +389,7 @@
@pytest.mark.parametrize("slots", [True, False])
def test_cls_static(self, slots):
"""
- Slot classes support proper closure cell rewriting for class- and
+ Slotted classes support proper closure cell rewriting for class- and
static methods.
"""
# Python can reuse closure cells, so we create new classes just for