Skip to content

Commit b1a8a5a

Browse files
kianmenghynek
authored andcommitted
Fix typos (#899)
1 parent fcbec63 commit b1a8a5a

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

CHANGELOG.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ Changes
587587
`#349 <https://github.com/python-attrs/attrs/issues/349>`_
588588
- The order of attributes that are passed into ``attr.make_class()`` or the *these* argument of ``@attr.s()`` is now retained if the dictionary is ordered (i.e. ``dict`` on Python 3.6 and later, ``collections.OrderedDict`` otherwise).
589589

590-
Before, the order was always determined by the order in which the attributes have been defined which may not be desirable when creating classes programatically.
590+
Before, the order was always determined by the order in which the attributes have been defined which may not be desirable when creating classes programmatically.
591591

592592
`#300 <https://github.com/python-attrs/attrs/issues/300>`_,
593593
`#339 <https://github.com/python-attrs/attrs/issues/339>`_,
@@ -599,7 +599,7 @@ Changes
599599
- Setting the cell type is now completely best effort.
600600
This fixes ``attrs`` on Jython.
601601

602-
We cannot make any guarantees regarding Jython though, because our test suite cannot run due to dependency incompatabilities.
602+
We cannot make any guarantees regarding Jython though, because our test suite cannot run due to dependency incompatibilities.
603603

604604
`#321 <https://github.com/python-attrs/attrs/issues/321>`_,
605605
`#334 <https://github.com/python-attrs/attrs/issues/334>`_

docs/hashing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Because according to the definition_ from the official Python docs, the returned
5454

5555
#. The hash of an object **must not** change.
5656

57-
If you create a class with ``@attr.s(frozen=True)`` this is fullfilled by definition, therefore ``attrs`` will write a ``__hash__`` function for you automatically.
57+
If you create a class with ``@attr.s(frozen=True)`` this is fulfilled by definition, therefore ``attrs`` will write a ``__hash__`` function for you automatically.
5858
You can also force it to write one with ``hash=True`` but then it's *your* responsibility to make sure that the object is not mutated.
5959

6060
This point is the reason why mutable structures like lists, dictionaries, or sets aren't hashable while immutable ones like tuples or frozensets are:

docs/init.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ And for that ``attrs`` offers three means:
345345
Pre Init
346346
~~~~~~~~
347347

348-
The sole reason for the existance of ``__attrs_pre_init__`` is to give users the chance to call ``super().__init__()``, because some subclassing-based APIs require that.
348+
The sole reason for the existence of ``__attrs_pre_init__`` is to give users the chance to call ``super().__init__()``, because some subclassing-based APIs require that.
349349

350350
.. doctest::
351351

src/attr/_make.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ def _create_slots_class(self):
868868
slot_names = [name for name in names if name not in base_names]
869869
# There are slots for attributes from current class
870870
# that are defined in parent classes.
871-
# As their descriptors may be overriden by a child class,
871+
# As their descriptors may be overridden by a child class,
872872
# we collect them here and update the class dict
873873
reused_slots = {
874874
slot: slot_descriptor

tests/test_make.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def test_kw_only(self):
235235
"""
236236
Converts all attributes, including base class' attributes, if `kw_only`
237237
is provided. Therefore, `kw_only` allows attributes with defaults to
238-
preceed mandatory attributes.
238+
precede mandatory attributes.
239239
240240
Updates in the subclass *don't* affect the base class attributes.
241241
"""

tests/test_slots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ def statmethod():
490490
def test_code_hack_failure(self, monkeypatch):
491491
"""
492492
Keeps working if function/code object introspection doesn't work
493-
on this (nonstandard) interpeter.
493+
on this (nonstandard) interpreter.
494494
495495
A warning is emitted that points to the actual code.
496496
"""

0 commit comments

Comments
 (0)