Skip to content

Commit 43c73ba

Browse files
Fix typo "nubmer" in Descriptor Guide documentation
1 parent a202e5c commit 43c73ba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/howto/descriptor.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,10 +1553,10 @@ assignments. Only attribute names specified in ``__slots__`` are allowed:
15531553
.. doctest::
15541554

15551555
>>> auto = Vehicle()
1556-
>>> auto.id_nubmer = 'VYE483814LQEX'
1556+
>>> auto.id_number = 'VYE483814LQEX'
15571557
Traceback (most recent call last):
15581558
...
1559-
AttributeError: 'Vehicle' object has no attribute 'id_nubmer'
1559+
AttributeError: 'Vehicle' object has no attribute 'id_number'
15601560

15611561
2. Helps create immutable objects where descriptors manage access to private
15621562
attributes stored in ``__slots__``:

0 commit comments

Comments
 (0)